/**
 * Logo Sound Styles
 * Logo 音频播放样式
 */

/* Logo 带音频功能 - 保持原有样式不变 */
.logo-with-sound {
    position: relative;
}

/* Hover 提示（tooltip）- 小巧优雅 */
.logo-with-sound::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    padding: 3px 8px;
    background-color: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.025em;
    border-radius: 3px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1000;
    text-transform: none;
}

/* 小三角指示器 */
.logo-with-sound::before {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    border: 4px solid transparent;
    border-bottom-color: rgba(0, 0, 0, 0.75);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1001;
}

/* Hover 时显示提示 */
.logo-with-sound:hover::after,
.logo-with-sound:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 播放中状态 - 微妙的脉冲效果 */
.logo-with-sound.playing {
    animation: logo-pulse 1.5s ease-in-out infinite;
}

/* 播放动画 - 更柔和 */
@keyframes logo-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* 响应式调整 */
@media screen and (max-width: 736px) {
    .logo-with-sound::after {
        font-size: 0.55rem;
        padding: 2px 6px;
        bottom: -24px;
    }
    
    .logo-with-sound::before {
        border-width: 3px;
        bottom: -11px;
    }
}
