271 lines
5.0 KiB
CSS
271 lines
5.0 KiB
CSS
/* V21 素材库页面 - 9:16 竖屏紧凑卡片 */
|
|
|
|
/* ========== 布局 ========== */
|
|
.xx-project-assets {
|
|
padding: var(--space-xl);
|
|
min-height: 100vh;
|
|
}
|
|
|
|
/* ========== 素材网格 - 竖屏卡片 ========== */
|
|
.xx-assets-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: var(--space-md);
|
|
}
|
|
|
|
@media (max-width: 1200px) {
|
|
.xx-assets-grid {
|
|
grid-template-columns: repeat(3, 1fr);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.xx-assets-grid {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.xx-assets-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
/* ========== 素材卡片 - V21 大圆角 ========== */
|
|
.xx-asset-card {
|
|
border: 1px solid var(--border-color);
|
|
background: rgba(255, 255, 255, 0.94);
|
|
border-radius: var(--radius-xl);
|
|
padding: 14px;
|
|
transition: all 0.25s ease;
|
|
cursor: pointer;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.xx-asset-card:hover {
|
|
border-color: var(--primary-color);
|
|
box-shadow: var(--shadow-md);
|
|
transform: translateY(-3px);
|
|
}
|
|
|
|
/* ========== 缩略图 - 9:16 竖屏 ========== */
|
|
.xx-asset-thumb {
|
|
aspect-ratio: 9 / 16;
|
|
border-radius: var(--radius-lg);
|
|
background: linear-gradient(135deg, #0ea5e9, #312e81);
|
|
position: relative;
|
|
overflow: hidden;
|
|
display: grid;
|
|
place-items: center;
|
|
color: white;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.xx-asset-thumb video,
|
|
.xx-asset-thumb img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
/* 播放按钮 - 毛玻璃效果 */
|
|
.xx-asset-thumb span {
|
|
position: absolute;
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: 50%;
|
|
display: grid;
|
|
place-items: center;
|
|
background: rgba(255, 255, 255, 0.22);
|
|
border: 2px solid rgba(255, 255, 255, 0.4);
|
|
backdrop-filter: blur(8px);
|
|
-webkit-backdrop-filter: blur(8px);
|
|
font-size: 18px;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.xx-asset-card:hover .xx-asset-thumb span {
|
|
background: rgba(255, 255, 255, 0.35);
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
/* ========== 素材状态 ========== */
|
|
.xx-asset-status {
|
|
display: inline-block;
|
|
font-size: 11px;
|
|
padding: 4px 10px;
|
|
border-radius: var(--radius-full);
|
|
font-weight: 850;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.xx-asset-status.ready {
|
|
background: var(--success-soft);
|
|
color: #15803d;
|
|
}
|
|
|
|
.xx-asset-status.processing {
|
|
background: var(--warning-soft);
|
|
color: #b45309;
|
|
}
|
|
|
|
.xx-asset-status.failed {
|
|
background: var(--error-soft);
|
|
color: #be123c;
|
|
}
|
|
|
|
/* 卡片文字 */
|
|
.xx-asset-card b {
|
|
display: block;
|
|
color: var(--text-primary);
|
|
font-weight: 850;
|
|
font-size: 14px;
|
|
margin-bottom: 4px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.xx-asset-card p {
|
|
margin: 0;
|
|
color: var(--text-secondary);
|
|
font-size: 12px;
|
|
}
|
|
|
|
/* ========== 视频卡片(横向) ========== */
|
|
.xx-video-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: var(--space-md);
|
|
}
|
|
|
|
@media (max-width: 1200px) {
|
|
.xx-video-grid {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.xx-video-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
.xx-video-card {
|
|
border: 1px solid var(--border-color);
|
|
background: white;
|
|
border-radius: var(--radius-xl);
|
|
padding: 14px;
|
|
transition: all 0.25s ease;
|
|
}
|
|
|
|
.xx-video-card:hover {
|
|
border-color: var(--primary-color);
|
|
box-shadow: var(--shadow-md);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
/* 视频封面 */
|
|
.xx-video-thumb {
|
|
aspect-ratio: 16 / 9;
|
|
border-radius: var(--radius-lg);
|
|
background: linear-gradient(135deg, #0ea5e9, #312e81);
|
|
position: relative;
|
|
overflow: hidden;
|
|
display: grid;
|
|
place-items: center;
|
|
color: white;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
/* 加载状态 */
|
|
.xx-loading {
|
|
padding: 60px 24px;
|
|
text-align: center;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* ========== 状态标签 ========== */
|
|
.row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.pill {
|
|
font-size: 11px;
|
|
padding: 4px 10px;
|
|
border-radius: var(--radius-full);
|
|
font-weight: 850;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.pill.ok {
|
|
background: var(--success-soft);
|
|
color: #15803d;
|
|
}
|
|
|
|
.pill.warn {
|
|
background: var(--warning-soft);
|
|
color: #b45309;
|
|
}
|
|
|
|
.pill.bad {
|
|
background: var(--error-soft);
|
|
color: #be123c;
|
|
}
|
|
|
|
/* ========== 操作按钮 ========== */
|
|
.assist-actions {
|
|
display: grid;
|
|
gap: 10px;
|
|
margin-top: 14px;
|
|
grid-template-columns: 1fr 1fr;
|
|
}
|
|
|
|
.assist-actions .btn {
|
|
border: 0;
|
|
border-radius: var(--radius-md);
|
|
padding: 10px 14px;
|
|
font-weight: 850;
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.assist-actions .btn.primary {
|
|
background: var(--gradient-primary);
|
|
color: white;
|
|
box-shadow: var(--shadow-primary);
|
|
}
|
|
|
|
.assist-actions .btn.primary:hover {
|
|
box-shadow: var(--shadow-hover);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.assist-actions .btn.ghost {
|
|
background: white;
|
|
border: 1px solid var(--border-color);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.assist-actions .btn.ghost:hover {
|
|
border-color: var(--primary-color);
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
/* ========== 空状态 ========== */
|
|
.xx-empty-state {
|
|
text-align: center;
|
|
padding: 48px 24px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.xx-empty-state p {
|
|
font-size: 16px;
|
|
margin: 0;
|
|
}
|