/* AI助手悬浮按钮样式 */
.ai-assistant-button {
    position: fixed;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.ai-assistant-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

.ai-assistant-button.dragging {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.8);
}

.ai-assistant-icon {
    width: 28px;
    height: 28px;
    color: white;
    z-index: 2;
}

.ai-assistant-icon svg {
    width: 100%;
    height: 100%;
}

/* 脉冲动画 */
.ai-assistant-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    animation: ai-pulse 2s infinite;
    opacity: 0.7;
}

@keyframes ai-pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

/* AI助手弹窗样式 */
.ai-assistant-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ai-assistant-modal.show {
    opacity: 1;
}

.ai-assistant-modal-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.ai-assistant-modal.show .ai-assistant-modal-content {
    transform: scale(1) translateY(0);
}

.ai-assistant-modal-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.ai-assistant-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.ai-assistant-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.ai-assistant-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.ai-assistant-modal-body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

/* 弹窗主体滚动条样式 */
.ai-assistant-modal-body::-webkit-scrollbar {
    width: 6px;
}

.ai-assistant-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.ai-assistant-modal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.ai-assistant-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Firefox滚动条样式 */
.ai-assistant-modal-body {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.ai-assistant-input-container {
    margin-bottom: 20px;
}

.ai-assistant-input {
    width: 100%;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.ai-assistant-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ai-assistant-controls {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    justify-content: flex-end;
}

.ai-assistant-voice-btn,
.ai-assistant-wake-word-btn,
.ai-assistant-send-btn {
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    width: 44px;
    height: 44px;
}

.ai-assistant-voice-btn {
    background: #f3f4f6;
    color: #6b7280;
}

.ai-assistant-voice-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.ai-assistant-voice-btn.listening {
    background: #fef3c7;
    color: #d97706;
    animation: ai-voice-pulse 1s infinite;
}

@keyframes ai-voice-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.ai-assistant-send-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.ai-assistant-send-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.ai-assistant-voice-btn svg,
.ai-assistant-wake-word-btn svg,
.ai-assistant-send-btn svg {
    width: 20px;
    height: 20px;
}

/* 语音唤醒按钮样式 */
.ai-assistant-wake-word-btn {
    background: #f3f4f6;
    color: #6b7280;
}

.ai-assistant-wake-word-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.ai-assistant-wake-word-btn.wake-word-active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    animation: wake-word-pulse 2s infinite;
}

@keyframes wake-word-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

/* 语音唤醒状态指示器 */
.ai-assistant-wake-word-status {
    margin-bottom: 16px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    animation: wake-word-status-fade-in 0.3s ease;
}

@keyframes wake-word-status-fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wake-word-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wake-word-pulse {
    width: 12px;
    height: 12px;
    background: #10b981;
    border-radius: 50%;
    animation: wake-word-dot-pulse 1.5s infinite;
}

@keyframes wake-word-dot-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

.wake-word-text {
    font-size: 14px;
    color: #059669;
    font-weight: 500;
    flex: 1;
}

/* 悬浮按钮语音唤醒状态 */
.ai-assistant-button.wake-word-listening {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    animation: wake-word-button-pulse 2s infinite;
}

@keyframes wake-word-button-pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(16, 185, 129, 0.8), 0 0 0 8px rgba(16, 185, 129, 0.2);
    }
}

.ai-assistant-button.processing-command {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    animation: processing-command-pulse 1s infinite;
}

@keyframes processing-command-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 30px rgba(59, 130, 246, 0.8);
    }
}

.ai-assistant-status {
    min-height: 40px;
}

.ai-assistant-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #6b7280;
    font-size: 14px;
}

.ai-assistant-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: ai-spin 1s linear infinite;
}

@keyframes ai-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ai-assistant-response {
    padding: 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    background: #f8fafc;
    border-left: 4px solid #667eea;
    color: #374151;
}

.ai-assistant-response.error {
    background: #fef2f2;
    border-left-color: #ef4444;
    color: #dc2626;
}

.ai-assistant-response.success {
    background: #f0fdf4;
    border-left-color: #22c55e;
    color: #166534;
}

.ai-assistant-response.warning {
    background: #fffbeb;
    border-left-color: #f59e0b;
    color: #92400e;
}

/* 智能匹配详情样式 */
.match-details {
    margin-top: 12px;
    padding: 12px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.match-score {
    font-weight: 600;
    color: #15803d;
    margin: 0 0 8px 0;
    font-size: 13px;
}

.match-reasons {
    margin-top: 8px;
}

.reasons-title {
    font-size: 12px;
    font-weight: 600;
    color: #166534;
    margin: 0 0 6px 0;
}

.reasons-list {
    margin: 0;
    padding-left: 16px;
    list-style: none;
}

.reasons-list li {
    font-size: 12px;
    color: #15803d;
    margin-bottom: 4px;
    position: relative;
}

.reasons-list li:before {
    content: "•";
    color: #22c55e;
    font-weight: bold;
    position: absolute;
    left: -12px;
}

.reasons-list li:last-child {
    margin-bottom: 0;
}

/* 搜索建议样式 */
.suggestions-container {
    margin-top: 12px;
}

.suggestions-title {
    font-size: 13px;
    font-weight: 600;
    color: #92400e;
    margin: 0 0 8px 0;
}

.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.search-suggestion {
    padding: 8px 12px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-suggestion:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateY(-1px);
}

.suggestion-text {
    font-size: 13px;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 2px;
}

.suggestion-desc {
    font-size: 11px;
    color: #a16207;
}

/* 推荐结果样式 */
.recommendation-container {
    margin-top: 12px;
}

.recommendation-title {
    font-size: 14px;
    font-weight: 600;
    color: #166534;
    margin: 0 0 8px 0;
}

.recommendation-list {
    background: rgba(34, 197, 94, 0.05);
    border: 1px solid rgba(34, 197, 94, 0.1);
    border-radius: 8px;
    padding: 12px;
    margin-top: 8px;
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* 隐藏滚动条但保持滚动功能 */
.recommendation-list::-webkit-scrollbar {
    width: 6px;
}

.recommendation-list::-webkit-scrollbar-track {
    background: transparent;
}

.recommendation-list::-webkit-scrollbar-thumb {
    background: rgba(34, 197, 94, 0.3);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.recommendation-list::-webkit-scrollbar-thumb:hover {
    background: rgba(34, 197, 94, 0.5);
}

/* Firefox滚动条样式 */
.recommendation-list {
    scrollbar-width: thin;
    scrollbar-color: rgba(34, 197, 94, 0.3) transparent;
}

.recommendation-item {
    padding: 8px 12px;
    font-size: 13px;
    color: #15803d;
    border-bottom: 1px solid rgba(34, 197, 94, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    border-radius: 4px;
    margin: 2px 0;
    transition: all 0.2s ease;
    position: relative;
}

.recommendation-item:hover {
    background: rgba(34, 197, 94, 0.1);
    transform: translateX(2px);
}

.recommendation-item:last-child {
    border-bottom: none;
}

.recommendation-item.selected {
    color: #166534;
    font-weight: 600;
}

.recommendation-item .star {
    margin-left: 8px;
    color: #f59e0b;
    font-size: 14px;
}

.recommendation-item .play-icon {
    color: #22c55e;
    font-size: 12px;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.recommendation-item:hover .play-icon {
    opacity: 1;
    transform: scale(1.2);
}

.recommendation-status {
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 6px;
    font-size: 12px;
    color: #15803d;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .ai-assistant-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .ai-assistant-modal-header {
        padding: 16px 20px 12px;
    }
    
    .ai-assistant-modal-body {
        padding: 20px;
    }
    
    .ai-assistant-button {
        width: 56px;
        height: 56px;
    }
    
    .ai-assistant-icon {
        width: 24px;
        height: 24px;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .ai-assistant-modal-content {
        background: #1f2937;
        color: #f9fafb;
    }
    
    .ai-assistant-input {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }
    
    .ai-assistant-input:focus {
        border-color: #667eea;
    }
    
    .ai-assistant-voice-btn {
        background: #374151;
        color: #9ca3af;
    }
    
    .ai-assistant-voice-btn:hover {
        background: #4b5563;
        color: #d1d5db;
    }
    
    .ai-assistant-response {
        background: #374151;
        color: #d1d5db;
    }
    
    .ai-assistant-response.error {
        background: #7f1d1d;
        color: #fca5a5;
    }
    
    .ai-assistant-response.success {
        background: #14532d;
        color: #86efac;
    }
    
    .match-details {
        background: rgba(34, 197, 94, 0.15);
        border-color: rgba(34, 197, 94, 0.3);
    }
    
    .match-score {
        color: #86efac;
    }
    
    .reasons-title {
        color: #86efac;
    }
    
    .reasons-list li {
        color: #86efac;
    }
    
    .reasons-list li:before {
        color: #22c55e;
    }
    
    .ai-assistant-response.warning {
        background: #7c2d12;
        color: #fed7aa;
    }
    
    .suggestions-title {
        color: #fed7aa;
    }
    
    .search-suggestion {
        background: rgba(245, 158, 11, 0.15);
        border-color: rgba(245, 158, 11, 0.3);
    }
    
    .search-suggestion:hover {
        background: rgba(245, 158, 11, 0.2);
        border-color: rgba(245, 158, 11, 0.4);
    }
    
    .suggestion-text {
        color: #fed7aa;
    }
    
    .suggestion-desc {
        color: #fdba74;
    }
    
    .recommendation-title {
        color: #86efac;
    }
    
    .recommendation-list {
        background: rgba(34, 197, 94, 0.1);
        border-color: rgba(34, 197, 94, 0.2);
    }
    
    .recommendation-item {
        color: #86efac;
        border-bottom-color: rgba(34, 197, 94, 0.2);
    }
    
    .recommendation-item.selected {
        color: #86efac;
    }
    
    .recommendation-item .star {
        color: #fbbf24;
    }
    
    .recommendation-item .play-icon {
        color: #86efac;
    }
    
    .recommendation-status {
        background: rgba(34, 197, 94, 0.15);
        color: #86efac;
    }
    
    /* 深色模式下的滚动条样式 */
    .ai-assistant-modal-body::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.2);
    }
    
    .ai-assistant-modal-body::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.3);
    }
    
    .ai-assistant-modal-body {
        scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
    }
    
    .recommendation-list::-webkit-scrollbar-thumb {
        background: rgba(34, 197, 94, 0.4);
    }
    
    .recommendation-list::-webkit-scrollbar-thumb:hover {
        background: rgba(34, 197, 94, 0.6);
    }
    
    .recommendation-list {
        scrollbar-color: rgba(34, 197, 94, 0.4) transparent;
    }
}

/* 推荐歌曲列表样式 */
.recommendations-container {
    margin-top: 15px;
    width: 100%;
}

.recommendations-title {
    font-size: 14px;
    color: #667eea;
    margin-bottom: 10px;
    font-weight: 600;
}

.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.recommended-song {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.recommended-song:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateX(5px);
}

.recommended-song.selected {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    border: 2px solid #667eea;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.song-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.song-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.recommended-song.selected .song-name {
    color: #667eea;
}

.song-artist {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
}

.playing-badge {
    padding: 4px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 11px;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(0.98);
    }
}

.play-hint {
    padding: 4px 12px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    font-size: 11px;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.recommended-song:hover .play-hint {
    opacity: 1;
}

.recommendation-tip {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-top: 5px;
    font-style: italic;
}

.query-text {
    font-size: 13px;
    color: #666;
    margin: 5px 0 10px 0;
    font-style: italic;
}

/* 深色模式下的推荐歌曲样式 */
@media (prefers-color-scheme: dark) {
    .song-name {
        color: #e0e0e0;
    }
    
    .recommended-song.selected .song-name {
        color: #9ca3f5;
    }
    
    .song-artist {
        color: #999;
    }
    
    .query-text {
        color: #aaa;
    }
    
    .recommendation-tip {
        color: #666;
    }
    
    .recommendations-title {
        color: #9ca3f5;
    }
    
    .recommended-song {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
        border-color: rgba(102, 126, 234, 0.3);
    }
    
    .recommended-song:hover {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
        border-color: rgba(102, 126, 234, 0.5);
    }
    
    .recommended-song.selected {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
        border-color: #9ca3f5;
    }
    
    .play-hint {
        background: rgba(102, 126, 234, 0.15);
        color: #9ca3f5;
    }
}

/* AI推荐结果新样式 */
.ai-recommendation-result {
    margin: 10px 0;
    padding: 15px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.recommendation-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
}

.recommendation-icon {
    font-size: 24px;
    margin-right: 10px;
}

.recommendation-reason {
    font-size: 16px;
    font-weight: 600;
    color: #667eea;
    flex: 1;
}

.recommendation-platform {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    display: inline-block;
}

.recommendation-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.recommendation-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.recommendation-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-color: #667eea;
    transform: translateX(5px);
}

.recommendation-item.playing {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.recommendation-item .item-number {
    font-size: 14px;
    font-weight: 700;
    color: #667eea;
    min-width: 25px;
    margin-right: 10px;
}

.recommendation-item .item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.recommendation-item .song-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.recommendation-item .artist-name {
    font-size: 13px;
    color: #666;
}

.recommendation-item .playing-indicator {
    font-size: 12px;
    color: #667eea;
    font-weight: 600;
    padding: 4px 10px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    white-space: nowrap;
    animation: pulse-indicator 1.5s infinite;
}

@keyframes pulse-indicator {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.recommendation-tip {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .ai-recommendation-result {
        background: linear-gradient(135deg, #2a2a3e 0%, #1a1a2e 100%);
    }
    
    .recommendation-header {
        border-bottom-color: rgba(156, 163, 245, 0.3);
    }
    
    .recommendation-reason {
        color: #9ca3f5;
    }
    
    .recommendation-platform {
        color: #aaa;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .recommendation-item {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .recommendation-item:hover {
        background: linear-gradient(135deg, rgba(156, 163, 245, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
        border-color: #9ca3f5;
    }
    
    .recommendation-item.playing {
        background: linear-gradient(135deg, rgba(156, 163, 245, 0.25) 0%, rgba(118, 75, 162, 0.25) 100%);
        border-color: #9ca3f5;
    }
    
    .recommendation-item .item-number {
        color: #9ca3f5;
    }
    
    .recommendation-item .song-name {
        color: #e0e0e0;
    }
    
    .recommendation-item .artist-name {
        color: #999;
    }
    
    .recommendation-item .playing-indicator {
        color: #9ca3f5;
        background: rgba(156, 163, 245, 0.15);
    }
    
    .recommendation-tip {
        color: #666;
    }
}
