@font-face { font-family: iconfont; src: url("/static/fonts/iconfont.46bbeda.woff2") format("woff2"); font-display: block; }
.collection-shell .iconfont { font-family: iconfont !important; font-style: normal; font-weight: 400; line-height: 1; -webkit-font-smoothing: antialiased; }
.collection-shell .icon-list::before { content: "\E629"; }
.collection-shell .icon-sync::before { content: "\E647"; }
.collection-shell .icon-cloud-download::before { content: "\E654"; }
.collection-shell .icon-select-all::before { content: "\E653"; }

.collection-page { height: 100%; min-height: 0; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 0 0 16px; background: transparent; }
.collection-sidebar { width: 170px; min-width: 170px; height: 100%; min-height: 0; padding: 8px; overflow: auto; border-radius: 10px; background: #fff; }
.collection-sidebar button { width: 154px; height: 38px; padding: 0 15px; border: 0; border-radius: 10px; background: #fff; color: #111; font-size: 13px; text-align: left; }
.collection-sidebar button:hover,
.collection-sidebar button.active { background: var(--ui-primary-soft, #fbeaec); color: var(--ui-accent-ink, #a21c27); }

.collection-main { min-width: 0; height: 100%; min-height: 0; overflow: hidden; border-radius: 10px; background: #fff; }
.collection-main-inner { position: relative; height: 100%; min-height: 0; padding-top: 44px; display: flex; flex-direction: column; }
.collection-toolbar { position: relative; z-index: 20; height: 43px; min-height: 43px; padding: 0 20px .5px; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; background: #fff; }
.collection-toolbar-left,
.collection-toolbar-right { display: flex; align-items: center; min-width: 0; }
.collection-toolbar-left { gap: 10px; }
.collection-toolbar-right { position: relative; gap: 8px; margin-left: auto; }
.collection-search { width: 223px; height: 26px; display: flex; align-items: center; }
.collection-search input { width: 200px; min-width: 0; height: 26px; padding: 0 8px; border: 1px solid #dcdfe6; border-radius: 3px 0 0 3px; outline: 0; color: #606266; font-size: 12px; }
.collection-search button { width: 38px; height: 26px; margin-left: -15px; border: 0; border-radius: 3px; background: var(--ui-primary, #b8202b); color: #fff; }
.collection-icon-button { width: 34px; height: 26px; padding: 0; border: 0; background: #fff; color: #606266; }
.collection-icon-button i { font-size: 24px; }
.collection-icon-button:hover,
.collection-reset-button:hover,
.collection-export-button:hover,
.collection-columns-button:hover { color: var(--ui-accent-ink, #a21c27); }
.collection-reset-button { width: 18px; }
.collection-tool-wrap { position: relative; display: inline-flex; }
.collection-export-button,
.collection-columns-button { display: inline-flex; align-items: center; justify-content: center; }
.collection-sort-button { height: 26px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--ui-primary, #b8202b); border-radius: 13px; background: var(--ui-primary, #b8202b); color: #fff; font-size: 12px; }
.collection-sort-button b { font-size: 12px; line-height: 1; }

.collection-export-menu,
.collection-columns-popover { position: absolute; z-index: 80; border: 1px solid #ebeef5; border-radius: 4px; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.12); }
.collection-export-menu { top: 31px; right: 0; width: 126px; padding: 5px 0; }
.collection-export-menu button { width: 100%; height: 30px; padding: 0 14px; border: 0; background: #fff; color: #606266; text-align: left; font-size: 12px; }
.collection-export-menu button:hover { background: #f5f7fa; color: var(--ui-accent-ink, #a21c27); }
.collection-columns-popover { top: 33px; right: 0; width: 188px; padding-top: 8px; }
.collection-columns-options { max-height: 390px; overflow: auto; }
.collection-column-option { min-height: 30px; padding: 0 14px; display: flex; align-items: center; gap: 8px; color: #606266; font-size: 12px; }
.collection-column-option input { margin: 0; accent-color: var(--ui-primary, #b8202b); }
.collection-column-fixed { color: #909399; }
.collection-columns-popover footer { padding: 8px 12px; border-top: 1px solid #ebeef5; text-align: right; }
.collection-columns-popover footer button { height: 24px; padding: 0 12px; border: 1px solid var(--ui-primary, #b8202b); border-radius: 3px; background: var(--ui-primary, #b8202b); color: #fff; font-size: 12px; }

.collection-table-frame { position: relative; flex: 1 1 auto; min-height: 0; margin: 16px 20px 0; overflow: auto; border: 1px solid #ebeef5; }
.collection-table { width: 100%; border-collapse: collapse; table-layout: fixed; color: #111; }
.collection-table th { position: relative; height: 41px; padding: 0 10px; border-right: 1px solid #fff; border-bottom: 1px solid #ebeef5; background: var(--ui-primary-soft, #fbeaec); color: var(--ui-ink, #343034); font-size: 12px; font-weight: 600; text-align: left; white-space: nowrap; }
.collection-table td { height: 40px; padding: 0 10px; border-right: 1px solid #ebeef5; border-bottom: 1px solid #ebeef5; overflow: hidden; color: #111; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.collection-table tr:hover td { background: #f8fbfe; }
.collection-table .collection-index { width: 40px; min-width: 40px; max-width: 40px; text-align: center; }
.collection-table .collection-sticky-left { position: sticky; left: 0; z-index: 8; background: var(--ui-primary-soft, #fbeaec); }
.collection-table td.collection-sticky-left { background: #fff; }
.collection-table .collection-operation { position: sticky; right: 0; z-index: 8; width: 64px; min-width: 64px; max-width: 64px; background: #fff; text-align: center; }
.collection-table th.collection-operation { background: var(--ui-primary-soft, #fbeaec); }
.collection-favorite,
.collection-operation button { padding: 4px; border: 0; background: transparent; color: var(--ui-muted, #716a70); }
.collection-favorite { color: #f4a62a; }
.collection-link { max-width: 100%; padding: 0; overflow: hidden; border: 0; background: transparent; color: var(--ui-accent-ink, #a21c27); text-overflow: ellipsis; white-space: nowrap; }
.collection-empty { position: absolute; inset: 41px 0 0; display: grid; place-content: center; gap: 9px; color: #909399; text-align: center; background: #fff; }
.collection-pagination { height: 51px; display: flex; align-items: center; justify-content: center; gap: 9px; color: #606266; font-size: 12px; }
.collection-pagination button { width: 28px; height: 28px; border: 0; background: #f4f6fa; color: #606266; }
.collection-pagination button.active { background: var(--ui-primary, #b8202b); color: #fff; }
.collection-pagination input { width: 40px; height: 26px; border: 1px solid #dcdfe6; border-radius: 3px; text-align: center; }

.collection-folder-title { margin: 17px 20px 0; color: var(--ui-accent-ink, #a21c27); font-size: 12px; }
.collection-files-grid { min-height: 0; padding: 17px 20px 0; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 24px 30px; overflow: auto; }
.collection-file-card { width: 280px; height: 194px; padding: 17px 18px 13px; display: grid; grid-template-rows: 32px minmax(0,1fr) 24px; border: 1px solid var(--ui-primary-line, #efd0d5); border-radius: 6px; background: #fff; color: var(--ui-ink, #343034); text-align: left; box-shadow: none; }
.collection-file-card:hover { border-color: var(--ui-primary-line, #efd0d5); background: #fbfdff; }
.collection-file-card-head { min-width: 0; display: flex; align-items: center; gap: 10px; color: #222; font-size: 13px; }
.collection-file-card-head span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.collection-star { color: #f3a424; font-size: 17px; }
.collection-folder-icon { align-self: center; justify-self: center; color: var(--ui-accent-ink, #a21c27); font-size: 72px; }
.collection-file-card-foot { display: flex; align-items: center; justify-content: space-between; color: var(--ui-muted, #716a70); font-size: 16px; }
.collection-file-empty { width: 100%; padding: 80px 0; color: #909399; text-align: center; }

@media (max-width: 820px) {
  .collection-page { display: block; padding: 0; }
  .collection-sidebar { display: flex; width: 100%; height: 48px; min-width: 0; padding: 0; border-radius: 0; overflow-x: auto; }
  .collection-sidebar button { width: auto; min-width: 118px; height: 48px; border-radius: 0; }
  .collection-main { height: calc(100% - 48px); border-radius: 0; }
  .collection-main-inner { padding-top: 0; }
  .collection-toolbar { min-height: 84px; height: auto; padding: 9px 10px; flex-wrap: wrap; align-items: flex-start; }
  .collection-toolbar-left,
  .collection-toolbar-right { width: 100%; flex-wrap: wrap; }
  .collection-search { flex: 1; }
  .collection-table-frame { margin: 10px 10px 0; }
  .collection-pagination { min-width: 360px; justify-content: flex-start; padding-left: 10px; overflow-x: auto; }
  .collection-files-grid { padding: 12px 10px 20px; display: grid; grid-template-columns: minmax(0, 1fr); }
  .collection-file-card { width: 100%; }
}
