/* 黑色小酷哥 - 全新悬浮效果 */

/* 基础样式优化 */
.character-black {
    width: 70px;
    height: 70px;
    position: relative;
}

.character-black .body {
    width: 100%;
    height: 100%;
    background: var(--black);
    border: 3px solid var(--black);
    border-radius: 20px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: visible;
}

/* 面部 */
.character-black .face {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 35px;
}

/* 眼睛 - 默认是酷酷的一条线 */
.character-black .eye {
    position: absolute;
    width: 14px;
    height: 4px;
    background: var(--white);
    border-radius: 2px;
    top: 12px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.character-black .eye.left { left: 5px; }
.character-black .eye.right { right: 5px; }

/* 嘴巴 - 默认是一直线 */
.character-black .mouth {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== 悬浮效果 - 霓虹酷哥模式 ===== */
.character-black:hover .body {
    background: linear-gradient(135deg, var(--black) 0%, #2d2d44 100%);
    border-color: var(--cyan);
    box-shadow: 
        0 0 20px rgba(34, 211, 238, 0.6),
        0 0 40px rgba(34, 211, 238, 0.3),
        0 0 60px rgba(34, 211, 238, 0.1),
        inset 0 0 20px rgba(34, 211, 238, 0.1);
    transform: scale(1.1);
    border-radius: 24px;
}

/* 悬浮时眼睛变成发光星星 */
.character-black:hover .eye {
    width: 12px;
    height: 12px;
    background: var(--yellow);
    border-radius: 50%;
    top: 8px;
    box-shadow: 
        0 0 10px var(--yellow),
        0 0 20px var(--yellow);
    animation: starBlink 0.8s ease-in-out infinite;
}

.character-black:hover .eye.left { 
    left: 6px; 
    transform: rotate(-15deg);
}

.character-black:hover .eye.right { 
    right: 6px; 
    transform: rotate(15deg);
}

/* 星星闪烁动画 */
@keyframes starBlink {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
        box-shadow: 0 0 10px var(--yellow), 0 0 20px var(--yellow);
    }
    50% { 
        transform: scale(1.2) rotate(180deg); 
        box-shadow: 0 0 20px var(--yellow), 0 0 40px var(--orange);
    }
}

/* 悬浮时嘴巴变成酷炫微笑 */
.character-black:hover .mouth {
    width: 24px;
    height: 12px;
    background: transparent;
    border: 3px solid var(--cyan);
    border-top: none;
    border-radius: 0 0 20px 20px;
    bottom: 6px;
    box-shadow: 0 2px 10px rgba(34, 211, 238, 0.5);
}

/* 添加耳机装饰 */
.character-black .headphones {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 80px;
    height: 50px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.character-black .headphones::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 30px;
    border: 4px solid var(--purple);
    border-bottom: none;
    border-radius: 30px 30px 0 0;
    background: transparent;
}

.character-black .headphones::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 18px;
    height: 25px;
    background: var(--purple);
    border: 2px solid var(--white);
    border-radius: 8px;
    box-shadow: 
        58px 0 0 var(--purple),
        58px 0 0 2px var(--white);
}

.character-black:hover .headphones {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    top: -15px;
}

/* 添加音乐音符动画 */
.character-black .music-notes {
    position: absolute;
    top: -30px;
    right: -20px;
    opacity: 0;
    transition: all 0.4s ease;
}

.character-black .music-notes::before,
.character-black .music-notes::after {
    content: '♪';
    position: absolute;
    color: var(--pink);
    font-size: 20px;
    font-weight: bold;
}

.character-black .music-notes::before {
    top: 0;
    right: 0;
    animation: floatNote1 1s ease-in-out infinite;
}

.character-black .music-notes::after {
    content: '♫';
    top: 15px;
    right: 20px;
    animation: floatNote2 1s ease-in-out infinite 0.3s;
}

.character-black:hover .music-notes {
    opacity: 1;
}

@keyframes floatNote1 {
    0%, 100% { transform: translateY(0) rotate(-10deg); opacity: 1; }
    50% { transform: translateY(-10px) rotate(10deg); opacity: 0.7; }
}

@keyframes floatNote2 {
    0%, 100% { transform: translateY(0) rotate(10deg); opacity: 0.8; }
    50% { transform: translateY(-8px) rotate(-10deg); opacity: 1; }
}

/* 点击效果 - 脉冲光环 */
.character-black:active .body {
    animation: pulseGlow 0.6s ease-out;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 20px rgba(34, 211, 238, 0.6); }
    50% { box-shadow: 0 0 40px rgba(34, 211, 238, 1), 0 0 80px rgba(34, 211, 238, 0.5); }
    100% { box-shadow: 0 0 20px rgba(34, 211, 238, 0.6); }
}

/* 导航栏中黑色角色的特殊调整 */
.logo-characters .character-black:hover .body {
    transform: scale(1.15);
}

.logo-characters .character-black:hover .headphones {
    top: -12px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .character-black:hover .body {
        transform: scale(1.05);
    }
    
    .character-black .headphones::before {
        width: 50px;
        height: 25px;
        border-width: 3px;
    }
    
    .character-black .headphones::after {
        width: 15px;
        height: 20px;
        box-shadow: 
            48px 0 0 var(--purple),
            48px 0 0 2px var(--white);
    }
}
