0fcb77b991
CI Build & Deploy Pipeline / Staging E2E Tests (push) Failing after 2m50s
CI Build & Deploy Pipeline / Production Browser E2E (push) Failing after 1437h19m24s
CI Build & Deploy Pipeline / Build Production Web Image (push) Failing after 1437h19m26s
CI Build & Deploy Pipeline / Deploy Production (push) Failing after 1437h19m25s
CI Build & Deploy Pipeline / Build Production API Image (push) Failing after 1437h19m26s
CI/CD Pipeline / Check if frontend-only change (push) Failing after 1437h21m16s
CI Build & Deploy Pipeline / Build Staging API Image (push) Has been skipped
CI Build & Deploy Pipeline / Build Staging Web Image (push) Has been skipped
CI Build & Deploy Pipeline / Build Staging Worker Image (push) Has been skipped
CI Build & Deploy Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Has been skipped
CI Build & Deploy Pipeline / Staging API Integration Tests (push) Has been skipped
CI Build & Deploy Pipeline / Build Production Worker Image (push) Failing after 1437h51m29s
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been skipped
CI/CD Pipeline / Unit Tests (push) Has been skipped
CI/CD Pipeline / Integration Tests (push) Has been skipped
CI/CD Pipeline / Frontend Lint (push) Has been skipped
Co-authored-by: xiaoxia <dev@xiaoxiajianji.com> Co-committed-by: xiaoxia <dev@xiaoxiajianji.com>
467 lines
8.9 KiB
CSS
467 lines
8.9 KiB
CSS
@import "../../styles/global.css";
|
|
|
|
/* ═══════════════════════════════════════════════════════════
|
|
我的音色页面 — V21 Design System
|
|
═══════════════════════════════════════════════════════════ */
|
|
|
|
/* ── 页面容器 ───────────────────────────────────────────── */
|
|
|
|
.vc-page {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-lg);
|
|
}
|
|
|
|
/* ── 卡片网格 ───────────────────────────────────────────── */
|
|
|
|
.vc-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
|
|
gap: var(--space-md);
|
|
margin-top: var(--space-xs);
|
|
}
|
|
|
|
/* ── 卡片 ───────────────────────────────────────────────── */
|
|
|
|
.vc-card {
|
|
position: relative;
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--radius-lg);
|
|
padding: var(--space-lg);
|
|
transition:
|
|
border-color 0.2s,
|
|
box-shadow 0.2s;
|
|
}
|
|
|
|
.vc-card:hover {
|
|
border-color: var(--primary-light);
|
|
box-shadow: 0 4px 20px color-mix(in srgb, var(--primary-color) 8%);
|
|
}
|
|
|
|
/* 右上角操作按钮 */
|
|
.vc-card-actions {
|
|
position: absolute;
|
|
top: 14px;
|
|
right: 14px;
|
|
display: flex;
|
|
gap: 4px;
|
|
opacity: 0;
|
|
transition: opacity 0.2s;
|
|
}
|
|
|
|
.vc-card:hover .vc-card-actions {
|
|
opacity: 1;
|
|
}
|
|
|
|
.vc-card-action-btn {
|
|
width: 28px;
|
|
height: 28px;
|
|
display: grid;
|
|
place-items: center;
|
|
border: none;
|
|
border-radius: var(--radius-sm);
|
|
background: var(--bg-secondary);
|
|
color: var(--muted);
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
transition:
|
|
background 0.15s,
|
|
color 0.15s;
|
|
}
|
|
|
|
.vc-card-action-btn:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.vc-card-action-btn:active {
|
|
transform: scale(0.9);
|
|
background: var(--bg-active);
|
|
}
|
|
|
|
.vc-card-action-btn--danger:hover {
|
|
background: var(--error-bg);
|
|
color: var(--error);
|
|
}
|
|
|
|
.vc-card-action-btn--danger:active {
|
|
transform: scale(0.9);
|
|
background: var(--error-bg);
|
|
}
|
|
|
|
/* 卡片头部:头像 + 名称 + 状态 */
|
|
.vc-card-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
.vc-card-avatar {
|
|
width: 52px;
|
|
height: 52px;
|
|
border-radius: 50%;
|
|
background: linear-gradient(135deg, var(--accent-color));
|
|
display: grid;
|
|
place-items: center;
|
|
font-size: 22px;
|
|
color: var(--text-inverse);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.vc-card-avatar--processing {
|
|
background: linear-gradient(135deg, var(--text-secondary), var(--color-gray-500));
|
|
animation: vc-pulse 2s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes vc-pulse {
|
|
0%,
|
|
100% {
|
|
opacity: 1;
|
|
}
|
|
50% {
|
|
opacity: 0.6;
|
|
}
|
|
}
|
|
|
|
.vc-card-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.vc-card-name {
|
|
margin: 0 0 6px;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
/* 状态胶囊 */
|
|
.vc-status-pill {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
padding: 2px 10px;
|
|
border-radius: var(--radius-pill);
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
line-height: 20px;
|
|
}
|
|
|
|
.vc-status-pill--ready {
|
|
background: var(--success-bg);
|
|
color: var(--success);
|
|
}
|
|
|
|
.vc-status-pill--processing {
|
|
background: var(--warning-bg);
|
|
color: var(--warning);
|
|
}
|
|
|
|
.vc-status-pill--failed {
|
|
background: var(--error-bg);
|
|
color: var(--error);
|
|
}
|
|
|
|
.vc-status-dot {
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 50%;
|
|
background: currentColor;
|
|
}
|
|
|
|
.vc-status-pill--processing .vc-status-dot {
|
|
animation: vc-blink 1.5s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes vc-blink {
|
|
0%,
|
|
100% {
|
|
opacity: 1;
|
|
}
|
|
50% {
|
|
opacity: 0.3;
|
|
}
|
|
}
|
|
|
|
/* 元信息 */
|
|
.vc-card-meta {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
margin-bottom: 14px;
|
|
font-size: 13px;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.vc-card-meta-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.vc-card-meta-icon {
|
|
font-size: 13px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* 操作区 */
|
|
.vc-card-footer {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 10px;
|
|
background: var(--bg-secondary);
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
.vc-card-footer .xx-btn {
|
|
flex: 1;
|
|
}
|
|
|
|
.vc-card-footer .xx-btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* ── 空状态 ─────────────────────────────────────────────── */
|
|
|
|
.vc-empty {
|
|
margin-top: 40px;
|
|
text-align: center;
|
|
padding: 60px 24px;
|
|
background: var(--bg-card);
|
|
border: 1px dashed var(--line);
|
|
border-radius: var(--radius-lg);
|
|
}
|
|
|
|
.vc-empty-icon {
|
|
font-size: 64px;
|
|
margin-bottom: 16px;
|
|
line-height: 1;
|
|
}
|
|
|
|
.vc-empty-title {
|
|
margin: 0 0 8px;
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.vc-empty-desc {
|
|
margin: 0 0 24px;
|
|
font-size: 14px;
|
|
color: var(--muted);
|
|
}
|
|
|
|
/* ── Toast 提示 ─────────────────────────────────────────── */
|
|
|
|
.vc-toast-container {
|
|
position: fixed;
|
|
top: 80px;
|
|
right: 20px;
|
|
z-index: 1000;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.vc-toast {
|
|
padding: 10px 16px;
|
|
border-radius: var(--radius-md);
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--line);
|
|
box-shadow: 0 4px 12px var(--shadow-sm);
|
|
animation: vc-toast-in 0.25s ease-out;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.vc-toast--success {
|
|
border-color: var(--success);
|
|
color: var(--success);
|
|
}
|
|
|
|
.vc-toast--error {
|
|
border-color: var(--error);
|
|
color: var(--error);
|
|
}
|
|
|
|
@keyframes vc-toast-in {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateX(20px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateX(0);
|
|
}
|
|
}
|
|
|
|
/* ── 编辑弹窗 ───────────────────────────────────────────── */
|
|
|
|
.vc-edit-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 1000;
|
|
display: grid;
|
|
place-items: center;
|
|
background: var(--overlay-bg);
|
|
animation: vc-fade-in 0.2s;
|
|
}
|
|
|
|
@keyframes vc-fade-in {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.vc-edit-dialog {
|
|
background: var(--bg-card);
|
|
border-radius: var(--radius-lg);
|
|
padding: 24px;
|
|
width: 400px;
|
|
max-width: calc(100vw - 40px);
|
|
box-shadow: 0 20px 60px var(--shadow-lg);
|
|
animation: vc-scale-in 0.2s ease-out;
|
|
}
|
|
|
|
@keyframes vc-scale-in {
|
|
from {
|
|
opacity: 0;
|
|
transform: scale(0.95);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
}
|
|
|
|
.vc-edit-title {
|
|
margin: 0 0 16px;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.vc-edit-input {
|
|
width: 100%;
|
|
padding: 10px 14px;
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--radius-sm);
|
|
font-size: 14px;
|
|
color: var(--text-primary);
|
|
background: var(--bg-primary);
|
|
outline: none;
|
|
transition: border-color 0.15s;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.vc-edit-input:focus {
|
|
border-color: var(--primary);
|
|
}
|
|
|
|
.vc-edit-buttons {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 10px;
|
|
}
|
|
|
|
/* ── 骨架屏加载 ──────────────────────────────────────────── */
|
|
|
|
.vc-skeleton-avatar {
|
|
width: 52px;
|
|
height: 52px;
|
|
border-radius: 50%;
|
|
background: var(--bg-secondary);
|
|
animation: vc-skeleton-pulse 1.5s ease-in-out infinite;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.vc-skeleton-line {
|
|
height: 14px;
|
|
border-radius: 4px;
|
|
background: var(--bg-secondary);
|
|
animation: vc-skeleton-pulse 1.5s ease-in-out infinite;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.vc-skeleton-line--title {
|
|
width: 60%;
|
|
height: 16px;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.vc-skeleton-line--short {
|
|
width: 40%;
|
|
}
|
|
|
|
.vc-skeleton-line--footer {
|
|
height: 36px;
|
|
margin-top: 8px;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
@keyframes vc-skeleton-pulse {
|
|
0%,
|
|
100% {
|
|
opacity: 1;
|
|
}
|
|
50% {
|
|
opacity: 0.4;
|
|
}
|
|
}
|
|
|
|
/* ── 编辑弹窗按钮状态 ───────────────────────────────────── */
|
|
|
|
.vc-edit-buttons .xx-btn:active {
|
|
transform: scale(0.96);
|
|
}
|
|
|
|
.vc-edit-buttons .xx-btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
transform: none;
|
|
}
|
|
|
|
/* ── 响应式 ─────────────────────────────────────────────── */
|
|
|
|
@media (max-width: 768px) {
|
|
.vc-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.vc-card-actions {
|
|
opacity: 1;
|
|
}
|
|
|
|
.vc-empty {
|
|
padding: 40px 16px;
|
|
}
|
|
|
|
.vc-empty-icon {
|
|
font-size: 48px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.vc-avatar-preview {
|
|
width: 80px;
|
|
height: 80px;
|
|
}
|
|
|
|
.vc-voice-card {
|
|
padding: var(--space-sm);
|
|
}
|
|
}
|