/* V21 配音库页面 - 波形图样式 */ /* ========== 布局 ========== */ .xx-project-voices { padding: var(--space-xl); min-height: 100vh; } /* ========== 配音网格 ========== */ .xx-voice-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-md); } @media (max-width: 1200px) { .xx-voice-grid { grid-template-columns: repeat(4, 1fr); } } @media (max-width: 768px) { .xx-voice-grid { grid-template-columns: repeat(3, 1fr); } } @media (max-width: 480px) { .xx-voice-grid { grid-template-columns: repeat(2, 1fr); } } /* ========== 配音卡片 - V21 大圆角 ========== */ .xx-voice { text-align: center; border: 2px solid var(--border-color); border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.94); padding: 18px 14px; cursor: pointer; transition: all 0.25s ease; position: relative; } .xx-voice:hover { border-color: var(--primary-color); transform: translateY(-2px); box-shadow: var(--shadow-md); } .xx-voice.selected { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14); } /* 选中标记 */ .xx-voice.selected::after { content: '✓'; position: absolute; right: -8px; top: -8px; width: 28px; height: 28px; border-radius: 50%; background: var(--gradient-primary); color: white; display: grid; place-items: center; font-weight: 900; font-size: 14px; box-shadow: var(--shadow-primary); } /* 音色图标 - 渐变圆形 */ .voice-icon { width: 60px; height: 60px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; color: white; font-size: 26px; background: var(--gradient-primary); box-shadow: var(--shadow-primary); transition: all 0.2s ease; } .xx-voice:hover .voice-icon { transform: scale(1.08); box-shadow: var(--shadow-hover); } /* ========== 波形图样式 ========== */ .waveform { display: flex; align-items: center; justify-content: center; gap: 3px; height: 32px; margin: 10px 0; } .waveform-bar { width: 4px; border-radius: 2px; background: var(--gradient-primary); opacity: 0.7; transition: all 0.2s ease; } .xx-voice:hover .waveform-bar { opacity: 1; } .waveform-bar:nth-child(1) { height: 40%; } .waveform-bar:nth-child(2) { height: 70%; } .waveform-bar:nth-child(3) { height: 100%; } .waveform-bar:nth-child(4) { height: 60%; } .waveform-bar:nth-child(5) { height: 80%; } .waveform-bar:nth-child(6) { height: 50%; } .waveform-bar:nth-child(7) { height: 90%; } .waveform-bar:nth-child(8) { height: 65%; } .waveform-bar:nth-child(9) { height: 45%; } .waveform-bar:nth-child(10) { height: 75%; } /* 播放中波形动画 */ .waveform.playing .waveform-bar { animation: wave 0.5s ease-in-out infinite alternate; } .waveform-bar:nth-child(1) { animation-delay: 0s; } .waveform-bar:nth-child(2) { animation-delay: 0.05s; } .waveform-bar:nth-child(3) { animation-delay: 0.1s; } .waveform-bar:nth-child(4) { animation-delay: 0.15s; } .waveform-bar:nth-child(5) { animation-delay: 0.2s; } .waveform-bar:nth-child(6) { animation-delay: 0.25s; } .waveform-bar:nth-child(7) { animation-delay: 0.3s; } .waveform-bar:nth-child(8) { animation-delay: 0.35s; } .waveform-bar:nth-child(9) { animation-delay: 0.4s; } .waveform-bar:nth-child(10) { animation-delay: 0.45s; } @keyframes wave { from { transform: scaleY(0.6); } to { transform: scaleY(1.2); } } /* 文字样式 */ .xx-voice div:not(.voice-icon):not(.waveform) { font-weight: 850; font-size: 14px; color: var(--text-primary); } .xx-voice small { display: block; color: var(--text-secondary); margin-top: 6px; font-size: 12px; } /* ========== 使用记录列表 ========== */ .xx-voice-usage-list { display: grid; gap: 12px; } .xx-voice-usage-row { border: 1px solid var(--border-color); background: white; border-radius: var(--radius-lg); padding: 16px; transition: all 0.2s ease; } .xx-voice-usage-row:hover { border-color: var(--primary-color); box-shadow: var(--shadow-xs); } .xx-voice-usage-row b { display: block; color: var(--text-primary); font-weight: 850; margin-bottom: 4px; } .xx-voice-usage-row p { margin: 0; color: var(--text-secondary); font-size: 12px; }