/* 资产库列表 · 对照影擎成品库。详情/上传/素材包弹窗仍用后半段 .adx-* / .pack-modal*。 不重写共享 .btn/.chip/.tabs/.toolbar。 */ .library-page { --klein: #002fa7; --klein-hover: #002680; --lib-black: #101012; --lib-muted: #6f747c; --lib-line: rgba(34, 42, 54, 0.10); --lib-wash: rgba(34, 42, 54, 0.045); --lib-shadow: 0 8px 18px rgba(20, 27, 38, 0.075); width: 100%; max-width: none; box-sizing: border-box; margin: -24px -28px -60px; padding: 52px clamp(40px, 3.2vw, 68px) 48px; } @media (max-width: 1100px) { .library-page { margin: -28px -24px -48px; } } .library-page .lib-inner { width: min(1560px, 100%); margin: 0 auto; } .library-page .lib-head { min-height: 76px; display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; margin-bottom: 34px; } .library-page .lib-head h1 { margin: 0 0 10px; font-size: 32px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; color: var(--accent-black); } .library-page .lib-head p { margin: 0; color: var(--lib-muted); font-size: 15px; } .library-page .lib-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; } .library-page .lib-ghost { min-width: 132px; height: 46px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid rgba(28, 34, 43, 0.12); border-radius: 11px; color: var(--accent-black); background: rgba(34, 42, 54, 0.05); font: inherit; cursor: pointer; } .library-page .lib-ghost:hover { background: rgba(34, 42, 54, 0.10); } .library-page .lib-ghost.is-on { color: #fff; border-color: var(--lib-black); background: var(--lib-black); } .library-page .lib-ghost svg { width: 19px; height: 19px; } .library-page .lib-toolbar { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 14px; border: 1px solid rgba(34, 42, 54, 0.09); border-radius: 13px; background: var(--lib-wash); box-shadow: 0 7px 17px rgba(20, 27, 38, 0.07); } .library-page .lib-seg { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; } .library-page .lib-seg-btn { height: 38px; padding: 0 14px; border: 0; border-radius: 9px; color: #50555d; background: transparent; font: inherit; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; } .library-page .lib-seg-btn:hover { color: var(--accent-black); } .library-page .lib-seg-btn.active { color: #fff; background: var(--lib-black); } .library-page .lib-seg-count { min-width: 18px; height: 18px; padding: 0 5px; display: inline-grid; place-items: center; border-radius: 999px; background: rgba(80, 85, 93, 0.12); font-size: 11px; font-variant-numeric: tabular-nums; } .library-page .lib-seg-btn.active .lib-seg-count { color: #fff; background: rgba(255, 255, 255, 0.16); } .library-page .lib-toolbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; } .library-page .lib-search { width: 220px; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid var(--lib-line); border-radius: 10px; background: #fff; } .library-page .lib-search svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--lib-muted); } .library-page .lib-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 13px; color: var(--accent-black); } .library-page .lib-search input::placeholder { color: var(--lib-muted); } .library-page .lib-select { position: relative; width: 136px; flex: 0 0 136px; z-index: 40; } .library-page .lib-select.open { z-index: 50; } .library-page .lib-select-trigger { width: 100%; height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px; border: 1px solid rgba(34, 42, 54, 0.12); border-radius: 10px; color: var(--accent-black); background: #fff; font: inherit; font-size: 12px; text-align: left; cursor: pointer; } .library-page .lib-select-trigger:hover, .library-page .lib-select.open .lib-select-trigger { border-color: rgba(0, 47, 167, 0.36); } .library-page .lib-select.open .lib-select-trigger { box-shadow: 0 0 0 3px rgba(0, 47, 167, 0.07); } .library-page .lib-select-trigger span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .library-page .lib-select-trigger svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--lib-muted); transition: transform 180ms ease; } .library-page .lib-select.open .lib-select-trigger svg { transform: rotate(180deg); } .library-page .lib-select-menu { position: absolute; top: calc(100% + 6px); right: 0; left: 0; z-index: 120; display: grid; gap: 3px; padding: 6px; border: 1px solid var(--lib-line); border-radius: 11px; background: #fff; box-shadow: 0 14px 34px rgba(20, 27, 38, 0.14); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-5px); } .library-page .lib-select.open .lib-select-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); } .library-page .lib-select-option { min-height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 0; border-radius: 8px; color: var(--accent-black); background: #fff; font: inherit; font-size: 13px; text-align: left; cursor: pointer; } .library-page .lib-select-option:hover { background: #e8f2ff; } .library-page .lib-select-option.selected { color: var(--klein); background: #f3f7ff; font-weight: 600; } .library-page .lib-section { margin: 32px 0 17px; } .library-page .lib-section h2 { margin: 0; font-size: 21px; font-weight: 600; color: var(--accent-black); } .library-page .lib-section p { margin: 5px 0 0; color: var(--lib-muted); font-size: 13px; } .library-page .lib-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } .library-page .lib-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--lib-line); border-radius: 13px; background: rgba(34, 42, 54, 0.05); box-shadow: var(--lib-shadow); cursor: pointer; outline: none; transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease; } .library-page .lib-card:hover { transform: translateY(-3px); background: rgba(34, 42, 54, 0.08); } .library-page .lib-card.selected { border-color: var(--klein); box-shadow: 0 0 0 2px rgba(0, 47, 167, 0.16), var(--lib-shadow); } .library-page .lib-thumb { position: relative; aspect-ratio: 1 / 0.78; overflow: hidden; display: grid; place-items: center; background: #e6e7ea; } .library-page .lib-thumb.portrait { width: 100%; aspect-ratio: 9 / 16; max-height: 280px; } .library-page .lib-thumb img, .library-page .lib-thumb video { width: 100%; height: 100%; display: block; object-fit: cover; } .library-page .lib-meta { padding: 15px 16px 17px; } .library-page .lib-meta h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--accent-black); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .library-page .lib-meta p { margin: 0; color: var(--lib-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .library-page .lib-line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 13px; } .library-page .lib-tag { display: inline-flex; align-items: center; height: 25px; padding: 0 9px; border-radius: 7px; color: #4c5360; background: rgba(34, 42, 54, 0.08); font-size: 11px; font-weight: 500; white-space: nowrap; } .library-page .lib-tag.blue { color: var(--klein); background: rgba(0, 47, 167, 0.09); } .library-page .lib-tag.green { color: #138d3f; background: rgba(22, 184, 78, 0.10); } .library-page .lib-count { position: absolute; left: 10px; top: 10px; z-index: 3; padding: 3px 8px; border-radius: 999px; color: #fff; background: rgba(16, 16, 18, 0.72); font-size: 11px; } .library-page .lib-play-badge { position: absolute; top: 50%; left: 50%; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; transform: translate(-50%, -50%); border-radius: 50%; color: #fff; background: rgba(0, 0, 0, .58); pointer-events: none; } .library-page .lib-play-badge svg { width: 18px; height: 18px; margin-left: 2px; } .library-page .lib-thumb:hover .lib-play-badge { background: rgba(0, 0, 0, .76); } .library-page .lib-audio-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 100%; color: var(--lib-muted); } .library-page .lib-audio-ph svg { width: 26px; height: 26px; } .library-page .lib-audio-ph .mono { font-size: 12px; letter-spacing: .08em; } .library-page .lib-check { position: absolute; top: 12px; left: 12px; z-index: 4; width: 25px; height: 25px; display: none; place-items: center; border: 2px solid rgba(0, 47, 167, 0.38); border-radius: 8px; color: transparent; background: rgba(255, 255, 255, 0.96); pointer-events: none; } .library-page .lib-check svg { width: 13px; height: 13px; } .library-page.manage-mode .lib-card .lib-check { display: grid; } .library-page.manage-mode .lib-card.selected .lib-check { color: #fff; border-color: var(--klein); background: var(--klein); } .library-page.manage-mode .lib-card .card-del-btn { opacity: 0 !important; pointer-events: none !important; } .library-page.manage-mode .lib-card .lib-count { left: 44px; } .library-page .lib-empty { min-height: 190px; display: grid; place-items: center; align-content: center; gap: 8px; padding: 28px; border: 1px dashed rgba(0, 47, 167, 0.20); border-radius: 16px; color: var(--lib-muted); background: rgba(0, 47, 167, 0.03); text-align: center; } .library-page .lib-empty svg { width: 28px; height: 28px; color: var(--klein); opacity: 0.72; } .library-page .lib-empty strong { color: var(--accent-black); font-size: 14px; font-weight: 600; } .library-page .lib-empty span { font-size: 12px; } .library-page .lib-sel-bar { position: fixed; left: calc(var(--sidebar-width) + (100vw - var(--sidebar-width)) / 2); bottom: 26px; z-index: 100; min-width: 410px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 13px 14px 13px 20px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 14px; color: #fff; background: rgba(16, 16, 18, 0.94); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24); transform: translate(-50%, 140%); opacity: 0; pointer-events: none; transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease; } .library-page .lib-sel-bar.active { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; } .library-page .lib-sel-copy strong, .library-page .lib-sel-copy span { display: block; } .library-page .lib-sel-copy span { margin-top: 3px; color: rgba(255, 255, 255, 0.58); font-size: 12px; } .library-page .lib-sel-actions { display: flex; gap: 8px; } .library-page .lib-sel-actions button { height: 38px; padding: 0 16px; border: 0; border-radius: 9px; font: inherit; font-size: 13px; cursor: pointer; } .library-page .lib-sel-cancel { color: #fff; background: rgba(255, 255, 255, 0.12); } .library-page .lib-sel-confirm { color: #fff; background: #002fa7; } .library-page .lib-sel-confirm:disabled { opacity: 0.4; cursor: not-allowed; } .library-page .list-pager { margin-top: 20px; } @media (max-width: 1500px) { .library-page .lib-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } } @media (max-width: 1100px) { .library-page .lib-sel-bar { left: 50%; } .library-page .lib-toolbar { flex-wrap: wrap; } } @media (max-width: 860px) { .library-page .lib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .library-page .lib-search { width: 100%; } } /* ───────────────────────────────────────────────────────────── 资产详情弹窗 · .adx-*(立绘大图 + 三视图/版本历史 + 简介/标签/属性 + 商品媒体画廊) 复用全局 .modal-bg 遮罩 + corner-tr/bl 装订角;主体类自建 scope 进 .adx-。 ───────────────────────────────────────────────────────────── */ .asset-detail-modal { position: relative; background: var(--surface); border: 1px solid var(--border-faint); border-radius: var(--r-md); width: min(1040px, 92vw); max-height: calc(100vh - 80px); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 16px 48px rgba(0, 0, 0, .18); opacity: 0; transform: scale(.97); transition: opacity .26s, transform .26s; } .modal-bg.show .asset-detail-modal { opacity: 1; transform: scale(1); } .asset-detail-modal.product-mode { width: min(1100px, 94vw); } .adx-h { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--border-faint); flex-shrink: 0; } .adx-h h2 { font-size: 15px; font-weight: 600; color: var(--accent-black); margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .adx-kind { font-family: var(--font-mono); font-size: 12px; color: var(--black-alpha-48); letter-spacing: .02em; flex-shrink: 0; } .adx-shield { flex-shrink: 0; } .adx-shield svg { vertical-align: -1px; margin-right: 2px; } .adx-x { width: 30px; height: 30px; display: grid; place-items: center; background: transparent; border: 0; cursor: pointer; color: var(--black-alpha-56); border-radius: var(--r-sm); margin-left: auto; flex-shrink: 0; transition: background var(--t-base), color var(--t-base); } .adx-x:hover { background: var(--black-alpha-8); color: var(--accent-crimson); } .adx-body { padding: 20px 24px 24px; overflow-y: auto; flex: 1; min-height: 0; } .adx-grid { display: grid; grid-template-columns: 320px 1fr; gap: 24px; } /* 左:立绘 / 主图 */ .adx-lead { display: flex; flex-direction: column; gap: 10px; } .adx-lead-wrap { position: relative; } .adx-lead-img { aspect-ratio: 9 / 16; border-radius: var(--r-md); overflow: hidden; display: grid; place-items: center; background: var(--background-lighter); } .asset-detail-modal.product-mode .adx-lead-img { aspect-ratio: 1; } .adx-lead-img[role="button"] { cursor: zoom-in; } .adx-lead-img img, .adx-lead-img video { width: 100%; height: 100%; object-fit: cover; display: block; } .adx-audio-ph { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--black-alpha-48); } .adx-audio-ph svg { width: 30px; height: 30px; } .adx-audio-ph .mono { font-size: 12px; letter-spacing: .08em; } .adx-zoom-btn { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .92); border: 1px solid var(--black-alpha-12); display: grid; place-items: center; color: var(--black-alpha-56); cursor: pointer; opacity: 0; transition: opacity var(--t-base), background var(--t-base), color var(--t-base); } .adx-zoom-btn svg { width: 14px; height: 14px; } .adx-lead-wrap:hover .adx-zoom-btn { opacity: 1; } .adx-zoom-btn:hover { background: var(--heat); color: var(--accent-white); border-color: var(--heat); } .adx-thumbs { display: flex; gap: 8px; flex-wrap: wrap; } .adx-thumb { flex: 0 0 56px; aspect-ratio: 3 / 4; border-radius: var(--r-sm); border: 1px solid var(--border-faint); cursor: pointer; overflow: hidden; background: var(--background-lighter); padding: 0; display: grid; place-items: center; } .adx-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; } .adx-thumb:hover { border-color: var(--heat-40); } .adx-thumb.active { border-color: var(--heat); border-width: 2px; } .adx-thumb .ph-frame { font-size: 12px; } /* 右:分区 */ .adx-section + .adx-section { margin-top: 18px; } .adx-section-h { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--accent-black); margin-bottom: 10px; } .adx-section-h .ic { width: 14px; height: 14px; color: var(--heat); display: grid; place-items: center; } .adx-ratio-chip { margin-left: auto; font-family: var(--font-mono); font-size: 12px; padding: 2px 8px; border-radius: var(--r-sm); background: var(--background-lighter); border: 1px solid var(--border-faint); color: var(--black-alpha-56); } .adx-tri-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } .adx-tri-cell { aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--border-faint); background: var(--background-lighter); display: grid; place-items: center; cursor: pointer; padding: 0; } .adx-tri-cell.single { grid-column: 1 / -1; aspect-ratio: 16 / 9; } .adx-tri-cell img { width: 100%; height: 100%; object-fit: cover; display: block; } .adx-tri-cell .ph-frame { font-size: 12px; } .adx-tri-missing { display: flex; align-items: flex-start; gap: 8px; padding: 11px 13px; background: var(--heat-12); border: 1px solid var(--heat-20); border-radius: var(--r-sm); font-size: 12px; line-height: 1.6; color: var(--accent-black); } .adx-tri-missing svg { color: var(--heat); flex-shrink: 0; margin-top: 1px; } .adx-tri-missing b { font-weight: 600; } .adx-intro { font-size: 13px; line-height: 1.7; color: var(--black-alpha-72); margin: 0; } .adx-muted { color: var(--black-alpha-48); font-family: var(--font-mono); font-size: 12px; } .adx-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; } .adx-tag { height: 24px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: var(--r-pill); background: var(--background-lighter); border: 1px solid var(--border-faint); font-size: 12px; color: var(--black-alpha-64); } .adx-props { display: grid; gap: 0; border: 1px solid var(--border-faint); border-radius: var(--r-md); overflow: hidden; } .adx-prop-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; font-size: 12.5px; } .adx-prop-row + .adx-prop-row { border-top: 1px solid var(--border-faint); } .adx-prop-row .k { color: var(--black-alpha-56); font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em; } .adx-prop-row .v { color: var(--accent-black); font-weight: 500; text-align: right; } /* 商品媒体画廊 */ .adx-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } .adx-media-card { border: 1px solid var(--border-faint); border-radius: var(--r-md); overflow: hidden; background: var(--surface); cursor: pointer; padding: 0; transition: background var(--t-base), border-color var(--t-base); } .adx-media-card:hover { background: var(--black-alpha-4); border-color: var(--black-alpha-24); } .adx-media-img { aspect-ratio: 1; background: var(--background-lighter); position: relative; display: grid; place-items: center; } .adx-media-img img { width: 100%; height: 100%; object-fit: cover; display: block; } .adx-media-img .asset-badge { position: absolute; top: 6px; left: 6px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; padding: 2px 6px; background: var(--surface); border: 1px solid var(--border-faint); border-radius: var(--r-sm); color: var(--black-alpha-56); } .adx-f { padding: 14px 20px; border-top: 1px solid var(--border-faint); display: flex; align-items: center; gap: 10px; flex-shrink: 0; } .adx-foot-dl { height: 32px; } .adx-foot-dl svg { vertical-align: -2px; margin-right: 4px; } .adx-foot-meta { font-size: 12px; color: var(--black-alpha-48); letter-spacing: .02em; margin-left: auto; } .adx-foot-meta + .btn { margin-left: 0; } @media (max-width: 1100px) { .adx-grid { grid-template-columns: 260px 1fr; } .adx-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } } /* ───────────────────────────────────────────────────────────── 上传资产 · 居中 Modal · 类型分段 + 拖拽区 + 预览 复用全局 .modal / .modal-bg / .modal-h / .modal-b / .modal-f / .field。 ───────────────────────────────────────────────────────────── */ .upload-modal { width: min(520px, 92vw); max-width: 520px; } .upload-modal-form { display: contents; } /* 标题占满 → 关闭键贴右上(modal-h 是 flex,默认不会把 .x 推到最右) */ .upload-modal .modal-h .ti { flex: 1; min-width: 0; } .upload-modal .modal-h .modal-x { flex-shrink: 0; width: 32px; height: 32px; border-radius: var(--r-sm); display: grid; place-items: center; background: transparent; border: 0; padding: 0; color: var(--black-alpha-56); cursor: pointer; transition: background var(--t-base), color var(--t-base); } .upload-modal .modal-h .modal-x:hover { background: var(--black-alpha-8); color: var(--accent-crimson); } .upload-modal .modal-b { padding: 20px 24px; } .upload-modal .field { margin-bottom: 16px; } .upload-modal .field:last-child { margin-bottom: 0; } /* 资产类型分段开关 */ .upload-kind-seg { display: inline-flex; gap: 4px; padding: 3px; background: var(--background-lighter); border: 1px solid var(--border-faint); border-radius: var(--r-md); } .uk-seg { height: 30px; padding: 0 14px; border: 0; background: transparent; color: var(--black-alpha-56); font-size: 12.5px; font-family: inherit; cursor: pointer; border-radius: var(--r-sm); transition: background var(--t-base), color var(--t-base); } .uk-seg:hover { color: var(--accent-black); } .uk-seg.active { background: var(--surface); color: var(--accent-black); font-weight: 500; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); } /* 拖拽区 */ .upload-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; cursor: pointer; border: 1px dashed var(--border-faint); border-radius: var(--r-md); background: var(--background-lighter); color: var(--black-alpha-56); font-size: 13px; transition: border-color .15s, background .15s, color .15s; } .upload-zone:hover, .upload-zone.dragover { border-color: var(--heat); background: var(--heat-8, var(--heat-12)); color: var(--heat); } .upload-zone:hover .uz-ic, .upload-zone.dragover .uz-ic { background: var(--heat); color: var(--accent-white); border-color: var(--heat); } .upload-zone .uz-ic { width: 40px; height: 40px; border-radius: var(--r-md); border: 1px solid var(--border-faint); background: var(--surface); display: grid; place-items: center; color: var(--black-alpha-56); transition: background .15s, color .15s, border-color .15s; } .upload-zone .uz-hint { font-family: var(--font-mono); font-size: 12px; color: var(--black-alpha-48); letter-spacing: .02em; } /* 预览 */ .upload-preview { position: relative; width: 110px; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--border-faint); background: var(--background-lighter); } .upload-preview.video { aspect-ratio: 9 / 16; width: 96px; } .upload-preview img, .upload-preview video { width: 100%; height: 100%; object-fit: cover; display: block; } .upload-file-chip { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--black-alpha-48); } .upload-file-chip .mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; } .upload-preview .preview-x { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: var(--r-pill); background: rgba(38, 38, 38, .7); color: var(--accent-white); display: grid; place-items: center; cursor: pointer; border: 0; transition: background .15s, transform .15s; } .upload-preview .preview-x:hover { background: var(--accent-crimson); transform: scale(1.08); } .upload-modal .modal-f { align-items: center; } .upload-foot-meta { flex: 1; font-family: var(--font-mono); font-size: 12px; color: var(--black-alpha-48); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .upload-foot-meta .accent { color: var(--heat); font-weight: 600; } /* 素材包弹窗(portal 到 body) */ .pack-modal-bg { position: fixed; inset: 0; z-index: 1200; background: rgba(0, 0, 0, .5); display: flex; align-items: center; justify-content: center; padding: 32px; } /* 层级顺序(低→高):.pack-modal-bg.under-confirm 990 < .modal-bg(ConfirmModal/详情/上传)999 < toast 1000 < .np-lightbox(灯箱)9999。 批次弹窗内单张删除会在其上弹二次确认(.modal-bg 999),故此变体降到 990,让确认弹窗可见; 仅用于生成批次弹窗,视频素材包弹窗仍走默认 1200(其内无二次确认)。 */ .pack-modal-bg.under-confirm { z-index: 990; } .pack-modal { background: var(--surface); border: 1px solid var(--border-faint); border-radius: var(--r-md); width: min(900px, 92vw); max-height: 86vh; display: flex; flex-direction: column; overflow: hidden; } .pack-modal-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border-faint); } .pack-modal-h > div { min-width: 0; } .pack-modal-h h2 { font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--accent-black); overflow-wrap: anywhere; word-break: break-word; } .pack-modal-h .x { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border: none; background: transparent; color: var(--black-alpha-48); border-radius: var(--r-sm); cursor: pointer; flex-shrink: 0; } .pack-modal-h .x:hover { background: var(--black-alpha-8); color: var(--accent-black); } .pack-clip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding: 18px 20px; overflow-y: auto; } .pack-clip video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--r-sm); background: #000; display: block; } /* 生成批次:单图卡(按钮重置 + 与视频片段同尺寸,悬停略亮) */ .pack-clip.as-btn { border: none; background: transparent; padding: 0; width: 100%; cursor: pointer; text-align: center; } .pack-clip img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--r-sm); background: var(--background-lighter); display: block; transition: opacity .15s; } .pack-clip.as-btn:hover img { opacity: .88; } .pack-clip .pack-clip-ph { width: 100%; aspect-ratio: 9 / 16; display: flex; align-items: center; justify-content: center; border-radius: var(--r-sm); background: var(--background-lighter); } .pack-clip-name { font-size: 11px; line-height: 1.5; color: var(--black-alpha-48); margin-top: 4px; text-align: center; letter-spacing: .02em; overflow-wrap: anywhere; word-break: break-word; } /* R108:批次弹窗内单张悬浮删除 icon(复用共享 .card-del-btn,这里只补 hover 触发,不改共享类本体) */ .pack-modal .pack-clip { position: relative; } .pack-modal .pack-clip:hover .card-del-btn, .pack-modal .pack-clip:focus-within .card-del-btn { opacity: 1; }