/* 🟡 黄色呆脸 - 全新独特动画 */

/* ========== 基础样式 ========== */
.character-yellow {
    width: 75px;
    height: 90px;
}

.character-yellow .body {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FEF9C3 0%, var(--yellow) 50%, #EAB308 100%);
    border: 3px solid var(--black);
    /* 独特的"土豆"形状 - 与橙色圆形明显不同 */
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    position: relative;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
    /* 迷糊摇摆动画 - 与橙色弹跳不同 */
    animation: dizzySway 4s ease-in-out infinite;
}

/* 顶部呆毛 */
.character-yellow .body::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 30%;
    width: 4px;
    height: 20px;
    background: var(--black);
    border-radius: 2px;
    transform: rotate(-20deg);
    transform-origin: bottom center;
    animation: hairSway 2s ease-in-out infinite;
}

.character-yellow .body::after {
    content: '';
    position: absolute;
    top: -12px;
    left: 35%;
    width: 4px;
    height: 15px;
    background: var(--black);
    border-radius: 2px;
    transform: rotate(10deg);
    transform-origin: bottom center;
    animation: hairSway 2s ease-in-out infinite 0.3s;
}

@keyframes hairSway {
    0%, 100% { transform: rotate(-20deg); }
    50% { transform: rotate(-35deg); }
}

/* 迷糊摇摆动画 - 与橙色活泼弹跳完全不同 */
@keyframes dizzySway {
    0%, 100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: rotate(-2deg) translateY(0);
    }
    25% {
        border-radius: 50% 50% 60% 40% / 50% 40% 50% 60%;
        transform: rotate(2deg) translateY(-3px);
    }
    50% {
        border-radius: 45% 55% 65% 35% / 45% 55% 55% 45%;
        transform: rotate(-1deg) translateY(-5px);
    }
    75% {
        border-radius: 55% 45% 55% 45% / 55% 45% 45% 55%;
        transform: rotate(3deg) translateY(-2px);
    }
}

.character-yellow .face {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 45px;
}

/* 豆豆眼 - 半闭着发呆 */
.character-yellow .eye {
    position: absolute;
    width: 10px;
    height: 4px;
    background: var(--black);
    border-radius: 2px;
    top: 12px;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* 明显错开且倾斜 - 迷糊状态 */
.character-yellow .eye.left {
    left: 6px;
    transform: translateY(-3px) rotate(-10deg);
}

.character-yellow .eye.right {
    right: 6px;
    transform: translateY(5px) rotate(8deg);
}

/* 独特的厚嘴唇嘴巴 - 与橙色小圆嘴不同 */
.character-yellow .mouth {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 12px;
    background: #F472B6;
    border: 3px solid var(--black);
    border-radius: 20px;
    transition: all 0.4s ease;
    z-index: 1;
}

/* 添加两颗小兔牙 - 放在嘴巴后面 */
.character-yellow .mouth::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: var(--white);
    border: 2px solid var(--black);
    border-bottom: none;
    border-radius: 4px 4px 2px 2px;
    box-shadow: 6px 0 0 -2px var(--white), 6px 0 0 0 var(--black);
    z-index: -1;
}

/* ========== 💫 悬浮效果 - 升级发呆模式 ========== */
.character-yellow:hover .body {
    background: linear-gradient(135deg, var(--yellow) 0%, #FDE68A 50%, #EAB308 100%);
    box-shadow:
        0 0 30px rgba(253, 224, 71, 0.6),
        6px 6px 0 rgba(0, 0, 0, 0.15);
    /* 旋转迷糊动画 - 与橙色弹跳完全不同 */
    animation: spinDizzy 2s ease-in-out infinite;
}

/* 迷糊旋转动画 - 与橙色活泼效果形成对比 */
@keyframes spinDizzy {
    0%, 100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: rotate(-5deg) scale(1.05);
    }
    25% {
        border-radius: 50% 50% 60% 40% / 50% 40% 50% 60%;
        transform: rotate(5deg) scale(1.05);
    }
    50% {
        border-radius: 45% 55% 65% 35% / 45% 55% 55% 45%;
        transform: rotate(-3deg) scale(1.08);
    }
    75% {
        border-radius: 55% 45% 55% 45% / 55% 45% 45% 55%;
        transform: rotate(3deg) scale(1.05);
    }
}

/* 眼睛变成旋转的螺旋状 - 晕了！ */
.character-yellow:hover .eye {
    width: 12px;
    height: 12px;
    background: transparent;
    border: 3px solid var(--black);
    border-radius: 50%;
    top: 10px;
}

.character-yellow:hover .eye.left {
    left: 5px;
    transform: translateY(0);
    /* 螺旋效果用渐变模拟 */
    background: conic-gradient(from 0deg, transparent 0deg, var(--black) 90deg, transparent 180deg, var(--black) 270deg, transparent 360deg);
    animation: eyeSpin 1s linear infinite;
}

.character-yellow:hover .eye.right {
    right: 5px;
    transform: translateY(0);
    background: conic-gradient(from 0deg, transparent 0deg, var(--black) 90deg, transparent 180deg, var(--black) 270deg, transparent 360deg);
    animation: eyeSpin 1s linear infinite reverse;
}

@keyframes eyeSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 嘴巴变成流口水 - 呆住 */
.character-yellow:hover .mouth {
    width: 14px;
    height: 22px;
    background: var(--black);
    border: none;
    border-radius: 0 0 14px 14px;
    animation: drool 0.8s ease-in-out infinite alternate;
}

.character-yellow:hover .mouth::before {
    /* 小兔牙在惊讶时变小 */
    content: '';
    top: -4px;
    width: 6px;
    height: 5px;
    box-shadow: 4px 0 0 -2px var(--white), 4px 0 0 0 var(--black);
}

@keyframes drool {
    from {
        transform: translateX(-50%) scaleY(1);
    }
    to {
        transform: translateX(-50%) scaleY(1.2);
    }
}

/* ========== 💭 走神气泡 ========== */
.character-yellow .thought-bubble {
    position: absolute;
    top: -50px;
    right: -20px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* 气泡内容 */
.character-yellow .thought-bubble::before {
    content: '...';
    display: block;
    padding: 8px 15px;
    background: var(--white);
    border: 3px solid var(--black);
    border-radius: 20px;
    font-weight: 900;
    font-size: 18px;
    color: var(--black);
    box-shadow: 3px 3px 0 rgba(0,0,0,0.1);
    animation: dotsBlink 1.5s ease-in-out infinite;
}

/* 小圆点连接线 */
.character-yellow .thought-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 10px;
    width: 10px;
    height: 10px;
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: 50%;
    box-shadow: 
        -8px 8px 0 -2px var(--white),
        -8px 8px 0 0 var(--black),
        -15px 15px 0 -4px var(--white),
        -15px 15px 0 -2px var(--black);
}

/* 三个点闪烁 */
@keyframes dotsBlink {
    0%, 100% { content: '.'; }
    33% { content: '..'; }
    66% { content: '...'; }
}

.character-yellow:hover .thought-bubble {
    opacity: 1;
    transform: scale(1);
    animation: bubbleFloat 2s ease-in-out infinite;
}

@keyframes bubbleFloat {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-10px) rotate(3deg); }
}

/* ========== 💤 睡觉Zzz ========== */
.character-yellow .sleep-zzz {
    position: absolute;
    top: -30px;
    left: -10px;
    opacity: 0;
    transition: all 0.3s ease;
}

.character-yellow .sleep-zzz::before,
.character-yellow .sleep-zzz::after {
    content: 'Z';
    position: absolute;
    color: var(--purple);
    font-weight: 900;
    font-size: 20px;
    text-shadow: 2px 2px 0 var(--white), 4px 4px 0 var(--black);
}

.character-yellow .sleep-zzz::before {
    top: 0;
    left: 0;
    font-size: 16px;
    animation: zFloat1 2s ease-in-out infinite;
}

.character-yellow .sleep-zzz::after {
    content: 'z';
    top: -15px;
    left: 15px;
    font-size: 12px;
    animation: zFloat2 2s ease-in-out infinite 0.5s;
}

@keyframes zFloat1 {
    0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 0; }
    20% { opacity: 1; }
    100% { transform: translateY(-30px) rotate(-10deg) scale(1.3); opacity: 0; }
}

@keyframes zFloat2 {
    0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 0; }
    20% { opacity: 1; }
    100% { transform: translateY(-25px) rotate(10deg) scale(1.5); opacity: 0; }
}

.character-yellow:hover .sleep-zzz {
    opacity: 1;
}

/* ========== ✨ 星星眼（点击惊醒） ========== */
.character-yellow .star-eyes {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.character-yellow .star-eyes::before,
.character-yellow .star-eyes::after {
    content: '✦';
    position: absolute;
    color: var(--orange);
    font-size: 18px;
    animation: starBlinkQuick 0.3s ease-in-out infinite;
}

.character-yellow .star-eyes::before {
    left: 6px;
}

.character-yellow .star-eyes::after {
    right: 6px;
    animation-delay: 0.15s;
}

@keyframes starBlinkQuick {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.9; }
}

/* 点击时的惊醒效果 - 从迷糊中惊醒 */
.character-yellow:active .eye {
    opacity: 0;
    animation: none;
}

.character-yellow:active .star-eyes {
    opacity: 1;
}

.character-yellow:active .mouth {
    width: 30px;
    height: 30px;
    background: var(--black);
    border-radius: 50%;
    border: none;
    animation: surpriseOh 0.3s ease;
}

.character-yellow:active .mouth::before {
    display: none;
}

@keyframes surpriseOh {
    0% { transform: translateX(-50%) scale(0.3); }
    50% { transform: translateX(-50%) scale(1.3); }
    100% { transform: translateX(-50%) scale(1); }
}

/* ========== 🌀 晕圈 ========== */
.character-yellow .dizzy {
    position: absolute;
    top: -20px;
    right: -5px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.character-yellow .dizzy::before {
    content: '🌀';
    font-size: 28px;
    filter: hue-rotate(45deg);
    animation: dizzySpin 1s linear infinite;
}

@keyframes dizzySpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.character-yellow:hover .dizzy {
    opacity: 0.7;
    transform: scale(1);
}

/* ========== 和小橙的区别化总结 ========== */
/*
   小橙（Orange）：
   - 圆形身体、爱心、弹跳、腮红
   - 整体感觉是：快乐、活泼、温暖、治愈
   - 动画：wiggle摇摆 + 爱心漂浮

   小黄（Yellow）NEW：
   - "土豆"不规则形状、带呆毛、厚嘴唇+门牙
   - 整体感觉是：呆萌、迷糊、迟钝、不太聪明但可爱
   - 动画：dizzySway迷糊摇摆 + 眼睛旋转 + 流口水

   关键区别：
   1. 外形：小橙是正圆形，小黄是不规则"土豆"形
   2. 装饰：小橙有腮红，小黄有呆毛和大门牙
   3. 气质：小橙是"开心甜心"，小黄是"迷糊呆瓜"
   4. 眼睛：小橙是弯月笑眼，小黄是旋转晕眩眼
   5. 嘴巴：小橙是大笑，小黄是张嘴流口水
   6. 动画：小橙是活泼弹跳，小黄是迷糊旋转
*/

/* ========== 导航栏小黄人专用 - 保持缩放的同时添加动画 ========== */
.logo-characters .character-yellow.bounce-gentle {
    animation: bounceGentleScaled 2s ease-in-out infinite;
}

@keyframes bounceGentleScaled {
    0%, 100% { transform: scale(0.6) translateY(0); }
    50% { transform: scale(0.6) translateY(-10px); }
}

.logo-characters .character-yellow.bounce-gentle:hover {
    transform: scale(0.7) rotate(-5deg);
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .character-yellow:hover .body {
        animation: spinDizzy 2s ease-in-out infinite;
    }

    .character-yellow .body::before,
    .character-yellow .body::after {
        display: none;
    }

    .character-yellow .thought-bubble,
    .character-yellow .sleep-zzz,
    .character-yellow .dizzy {
        display: none;
    }
}
