PRINTFILM: AI short-video marketing and AI short-drama creation platform
/* 资产详情唯一布局:完整媒体展示、有限高度的信息区与固定操作栏。 */
.pf-modal-panel.pf-asset-detail-shell { width: min(1420px, 100%); max-height: calc(100dvh - 40px); border: 0; border-radius: 22px; }
.pf-asset-detail-shell > .pf-modal-body { padding: 0; overflow: hidden; gap: 0; }
.pf-asset-detail-dialog { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(360px, 1fr); width: min(1420px, 100%); height: min(860px, calc(100dvh - 56px)); overflow: hidden; border-radius: 22px; background: #fff; box-shadow: 0 26px 90px #131b2433; outline: none; }
.pf-asset-detail-media { position: relative; min-width: 0; min-height: 0; display: grid; place-items: center; overflow: hidden; background: #f2f4ee; }
.pf-asset-detail-media.is-video { background: #101218; }
.pf-asset-detail-media > img, .pf-asset-detail-media > video { display: block; width: 100%; height: 100%; object-fit: contain; }
.pf-asset-detail-media > pre { align-self: stretch; justify-self: stretch; overflow: auto; margin: 0; padding: 36px; white-space: pre-wrap; overflow-wrap: anywhere; color: #43513b; font: inherit; line-height: 1.9; }
.pf-asset-detail-media-tools { position: absolute; top: 16px; right: 16px; display: flex; gap: 8px; }
.pf-asset-detail-media-tools button { display: grid; place-items: center; width: 35px; height: 35px; padding: 0; border: 1px solid #ffffff70; border-radius: 50%; background: #fffffff0; color: #536247; cursor: pointer; }
.pf-asset-detail-time { position: absolute; top: 16px; left: 16px; padding: 6px 10px; border-radius: 7px; background: #0009; color: #fff; font-size: 12px; font-variant-numeric: tabular-nums; pointer-events: none; }
.pf-asset-detail-sidebar { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: #fff; border-left: 1px solid #e7ebdf; }
.pf-asset-detail-scroll { min-height: 0; overflow-y: auto; padding: 30px 28px 24px; scrollbar-width: thin; scrollbar-color: #d7dfcd transparent; }
.pf-asset-detail-type { display: inline-flex; padding: 5px 9px; border-radius: 6px; border: 1px solid #e4eadb; background: #f6f8f0; color: #7b8c65; font-size: 11px; }
.pf-asset-detail-scroll h2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; margin: 17px 0 24px; font-size: 23px; line-height: 1.45; font-weight: 650; color: #36432b; }
.pf-asset-detail-prompt { margin-bottom: 24px; }
.pf-asset-detail-prompt h3 { margin: 0 0 10px; font-size: 12px; color: #93a086; font-weight: 500; }
.pf-asset-detail-text p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.95; color: #46533b; }
.pf-asset-detail-text .is-collapsed { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.pf-asset-detail-text .is-expanded { max-height: 260px; overflow: auto; padding-right: 6px; }
.pf-asset-detail-text .pf-detail-text-toggle { padding: 7px 0 0; border: 0; background: transparent; color: #779244; font: inherit; font-size: 12px; cursor: pointer; }
.pf-detail-prompt-mention { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; margin: 2px 4px 2px 0; padding: 3px 8px 3px 3px; border: 1px solid #dfe6d7; border-radius: 20px; background: #f8faf4; color: #36432b; font: inherit; line-height: 1.5; vertical-align: middle; cursor: pointer; }
.pf-detail-prompt-mention > span:not(.pf-detail-reference-thumb) { min-width: 0; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-detail-prompt-mention > small { max-width: 105px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #7b8b6a; font-size: 10px; }
.pf-detail-reference-thumb { position: relative; display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; border-radius: inherit; background: #edf1e7; color: #87967a; }
.pf-detail-reference-thumb > img, .pf-detail-reference-thumb > video { display: block; width: 100%; height: 100%; object-fit: cover; }
.pf-detail-prompt-mention .pf-detail-reference-thumb { flex-shrink: 0; width: 27px; height: 27px; border-radius: 50%; }
.pf-detail-prompt-mention .pf-detail-reference-play { display: none; }
.pf-detail-reference-play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #0008; color: #fff; transform: translate(-50%, -50%); }
.pf-detail-references { margin: 0 0 28px; }
.pf-detail-references > h3 { display: flex; align-items: center; gap: 7px; margin: 0 0 14px; font-size: 12px; font-weight: 500; color: #7c8b6d; }
.pf-detail-references > h3 > span { padding: 1px 5px; border-radius: 4px; background: #f1f5e9; font-size: 10px; font-variant-numeric: tabular-nums; }
.pf-detail-reference-group + .pf-detail-reference-group { margin-top: 16px; }
.pf-detail-reference-group > h4 { margin: 0 0 8px; color: #98a08f; font-size: 11px; font-weight: 400; }
.pf-detail-reference-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); align-items: start; gap: 12px 10px; }
.pf-detail-reference { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.pf-detail-reference-open { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; overflow: hidden; border: 1px solid #e4e9dd; border-radius: 10px; background: #f0f3eb; cursor: pointer; }
.pf-detail-reference-open:hover, .pf-detail-prompt-mention:hover { border-color: #a8c978; box-shadow: 0 0 0 2px #b8ed631c; }
.pf-detail-reference-open:focus-visible, .pf-detail-prompt-mention:focus-visible { outline: 2px solid #90b750; outline-offset: 3px; }
.pf-detail-reference-label { position: absolute; right: 0; bottom: 0; left: 0; padding: 12px 5px 4px; background: linear-gradient(transparent, #000a); color: #fff; font-size: 10px; text-align: center; }
.pf-detail-reference-name { display: block; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #5d6b50; font-size: 11px; }
.pf-detail-reference > small { margin-top: -3px; color: #94a086; font-size: 10px; }
.pf-detail-reference-group.is-audio .pf-detail-reference-grid { grid-template-columns: 1fr; }
.pf-detail-reference-group.is-audio .pf-detail-reference { position: relative; display: grid; grid-template-columns: 43px minmax(0, 1fr); gap: 4px 10px; padding: 10px; border: 1px solid #e7ebdf; border-radius: 10px; }
.pf-detail-reference-group.is-audio .pf-detail-reference-open { grid-row: 1 / 3; align-self: center; border: 0; }
.pf-detail-reference-group.is-audio .pf-detail-reference-label { display: none; }
.pf-detail-reference-group.is-audio audio { grid-column: 2; display: block; width: 100%; height: 32px; }
.pf-detail-reference-preview > .pf-modal-body { padding: 0; overflow: hidden; }
.pf-detail-reference-preview .pf-modal-head h3 { min-width: 0; overflow-wrap: anywhere; }
.pf-detail-reference-player { display: grid; place-items: center; min-height: 180px; overflow: auto; background: #101218; color: #fff; }
.pf-detail-reference-player > img, .pf-detail-reference-player > video { display: block; width: 100%; max-height: calc(100dvh - 170px); object-fit: contain; }
.pf-detail-reference-player.is-audio { gap: 24px; padding: 44px 24px; background: #f2f5ec; color: #71835a; }
.pf-detail-reference-player audio { width: min(100%, 460px); }
.pf-detail-reference-player > p { padding: 36px; color: #c5ccb9; font-size: 14px; }
.pf-asset-detail-meta { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 14px 16px; margin: 0; font-size: 12px; line-height: 1.6; }
.pf-asset-detail-meta-row { display: contents; }
.pf-asset-detail-meta dt { color: #99a38e; }
.pf-asset-detail-meta dd { min-width: 0; margin: 0; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #46533b; }
.pf-asset-detail-actions { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 18px 24px; border-top: 1px solid #edf0e7; background: #fff; }
.pf-asset-detail-actions > p { margin: 0; font-size: 12px; color: #788f55; }
.pf-asset-detail-utilities { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.pf-asset-detail-utilities .pf-btn { flex: 1; justify-content: center; font-size: 11px; padding: 8px; }
.pf-asset-detail-audio { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #29392a; }
.pf-asset-detail-audio .pf-library-art { width: 100%; height: auto; max-height: 60%; aspect-ratio: auto; background: transparent; }
.pf-asset-detail-audio audio { margin-top: 30px; width: min(80%, 380px); }
.pf-asset-detail-voice { position: absolute; bottom: 20px; width: min(80%, 380px); }
.pf-asset-detail-dialog.is-zoomed { grid-template-columns: 1fr; }
.pf-asset-detail-dialog.is-zoomed .pf-asset-detail-sidebar { display: none; }
.pf-asset-detail-editor { margin-top: 24px; border-top: 1px solid #edf0e7; padding-top: 18px; }
.pf-asset-detail-editor > summary { color: #6c8051; font-size: 12px; cursor: pointer; }
.pf-asset-detail-editor textarea { box-sizing: border-box; width: 100%; min-height: 100px; max-height: 220px; margin-top: 12px; border: 1px solid #e0e7d6; border-radius: 8px; background: #fafbf7; padding: 11px; color: #4c5a40; font: inherit; font-size: 12px; line-height: 1.8; resize: vertical; }
.pf-asset-detail-edit-actions { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.pf-asset-detail-edit-actions .pf-btn { font-size: 11px; padding: 7px 9px; }
.pf-asset-detail-history { margin-top: 20px; }
.pf-asset-detail-history summary { color: #7f8f6e; cursor: pointer; font-size: 12px; }
.pf-asset-detail-versions { display: grid; gap: 9px; list-style: none; padding: 0; margin: 12px 0 0; }
.pf-asset-detail-versions li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px; border: 1px solid #e7ebdf; border-radius: 8px; }
.pf-asset-detail-version-thumb { flex-shrink: 0; width: 48px; height: 48px; border: 0; padding: 0; border-radius: 5px; overflow: hidden; background: #f0f3eb; cursor: pointer; }
.pf-asset-detail-version-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pf-asset-detail-version-info { flex: 1; min-width: 0; color: #6f805b; font-size: 11px; }
.pf-asset-detail-version-info small { display: block; margin-top: 4px; color: #a0aa95; }
@media (max-width: 760px) {
.pf-modal-panel.pf-asset-detail-shell { border-radius: 16px; }
.pf-asset-detail-dialog { grid-template-columns: 1fr; grid-template-rows: minmax(160px, 42%) minmax(0, 1fr); height: calc(100dvh - 40px); border-radius: 16px; }
.pf-asset-detail-sidebar { border-left: 0; }
.pf-asset-detail-scroll { padding: 20px; }
.pf-asset-detail-scroll h2 { font-size: 20px; margin: 12px 0 18px; }
.pf-asset-detail-actions { padding: 12px 18px; }
.pf-asset-detail-dialog.is-zoomed { grid-template-rows: 1fr; }
}