/* ================================================================
   舞台与坐骑（乐高 CSS 模型 + 自然骑行姿态）
   ================================================================ */
.lego-stage {
    position: relative;
    width: 140px; height: 178px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.lego-stage .lego-figure { z-index: 2; flex-shrink: 0; }
/* 上马后骑手抬高，"坐"到坐骑鞍上 */
.lego-stage.stage-mounted .lego-figure { margin-bottom: 14px; }
.lego-stage.mnt-stage-bike .lego-figure { margin-bottom: 0; }

/* 未知坐骑回退 emoji */
.lego-mount-emoji {
    position: absolute;
    bottom: 4px; left: 50%;
    transform: translateX(-50%);
    font-size: 40px;
    z-index: 1;
    pointer-events: none;
}

/* --- 骑行姿态：双腿跨坐、双手前伸扶缰 --- */
.lego-figure.riding .lego-leg-l { transform: translateX(-3px) rotate(-6deg); }
.lego-figure.riding .lego-leg-r { transform: translateX(3px) rotate(6deg); }
.lego-figure.riding .lego-arm-l { transform: rotate(-35deg) translateY(-6px); }
.lego-figure.riding .lego-arm-r { transform: rotate(35deg) translateY(-6px); }

/* 骑自行车时腿收拢一些，脚踩在脚踏位置 */
.lego-figure.riding.mnt-bike .lego-leg-l { transform: translateX(-2px) rotate(-3deg) translateY(2px); }
.lego-figure.riding.mnt-bike .lego-leg-r { transform: translateX(2px) rotate(3deg) translateY(2px); }

/* --- 坐骑通用容器 --- */
.lego-mount {
    position: absolute;
    bottom: 2px; left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

/* 马形通用零件（神骏/麒麟/木马共用骨架） */
.lego-mount .mt-body {
    position: absolute;
    width: 70px; height: 32px;
    border-radius: 18px 20px 14px 14px;
    bottom: 30px; left: 50%;
    transform: translateX(-50%);
}
.lego-mount .mt-neck {
    position: absolute;
    width: 16px; height: 40px;
    border-radius: 8px 8px 4px 4px;
    bottom: 50px; left: 50%;
    transform: translateX(-50%) rotate(-8deg);
}
.lego-mount .mt-head {
    position: absolute;
    width: 30px; height: 20px;
    border-radius: 12px 6px 8px 10px;
    bottom: 82px; left: 50%;
    transform: translateX(-50%) translateX(12px);
}
.lego-mount .mt-mane {
    position: absolute;
    width: 8px; height: 28px;
    border-radius: 4px;
    bottom: 58px; left: 50%;
    transform: translateX(-50%) translateX(4px);
}
.lego-mount .mt-tail {
    position: absolute;
    width: 6px; height: 24px;
    border-radius: 3px;
    bottom: 44px; left: 50%;
    transform: translateX(-50%) translateX(-32px) rotate(15deg);
}
.lego-mount .mt-saddle {
    position: absolute;
    width: 28px; height: 10px;
    border-radius: 6px 6px 3px 3px;
    bottom: 58px; left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}
.lego-mount .mt-leg {
    position: absolute;
    width: 6px; height: 28px;
    border-radius: 3px 3px 3px 3px;
    bottom: 4px;
}
.lego-mount .mt-leg-1 { left: 6px; }
.lego-mount .mt-leg-2 { left: 16px; }
.lego-mount .mt-leg-3 { right: 16px; }
.lego-mount .mt-leg-4 { right: 6px; }

/* 蹄子 */
.lego-mount .mt-leg::after {
    content: "";
    position: absolute;
    bottom: -3px; left: -2px;
    width: 10px; height: 6px;
    border-radius: 2px 2px 3px 3px;
    background: #3e2723;
}

/* 木马摇杆 */
.lego-mount .mt-rockers {
    position: absolute;
    width: 50px; height: 6px;
    border-radius: 50%;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
}
.lego-mount .mt-handle {
    position: absolute;
    width: 4px; height: 20px;
    border-radius: 2px;
    bottom: 46px; left: 50%;
    transform: translateX(-50%) translateX(10px);
}

/* --- 神骏（白色骏马） --- */
.mnt-horse .mt-body { background: linear-gradient(180deg, #f5f5f5, #e0e0e0); }
.mnt-horse .mt-neck { background: #f5f5f5; }
.mnt-horse .mt-head { background: #fafafa; }
.mnt-horse .mt-mane { background: #bdbdbd; }
.mnt-horse .mt-tail { background: #bdbdbd; }
.mnt-horse .mt-saddle { background: #5d4037; }
.mnt-horse .mt-leg { background: #e0e0e0; }

/* --- 麒麟（青鳞金鬃神兽） --- */
.mnt-kirin .mt-body { background: linear-gradient(180deg, #26c6da, #0097a7); }
.mnt-kirin .mt-neck { background: #26c6da; }
.mnt-kirin .mt-head { background: #b2ebf2; }
.mnt-kirin .mt-mane { background: linear-gradient(180deg, #ffb300, #ff8f00); }
.mnt-kirin .mt-tail { background: linear-gradient(180deg, #ffb300, #ff8f00); }
.mnt-kirin .mt-saddle { background: #4e342e; }
.mnt-kirin .mt-leg { background: #0097a7; }
/* 麒麟角 */
.mt-horn {
    position: absolute;
    width: 4px; height: 14px;
    background: linear-gradient(180deg, #ffb300, #ff6f00);
    border-radius: 2px 2px 0 0;
    bottom: 98px; left: 50%;
    transform: translateX(-50%) translateX(16px) rotate(-5deg);
}

/* --- 小木马（实木摇马） --- */
.mnt-rock .mt-body { background: linear-gradient(180deg, #c49a6c, #a0764a); }
.mnt-rock .mt-neck { background: #c49a6c; }
.mnt-rock .mt-head { background: #d7b586; }
.mnt-rock .mt-mane { background: #5d4037; }
.mnt-rock .mt-tail { background: #5d4037; }
.mnt-rock .mt-saddle { background: #c62828; }
.mnt-rock .mt-leg { background: #8d6e63; }
.mnt-rock .mt-rockers { background: #6d4c41; }
.mnt-rock .mt-handle { background: #5d4037; }

/* --- 自行车（红色车架 + 转动的车轮） --- */
.lego-mount.mnt-bike {
    width: 80px; height: 60px;
    bottom: 4px;
}
.mnt-bike .mt-wheel {
    position: absolute;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 3px solid #37474f;
    background: transparent;
    bottom: 0;
}
.mnt-bike .mt-wheel-l { left: 0; }
.mnt-bike .mt-wheel-r { right: 0; }
/* 车轮辐条 */
.mnt-bike .mt-wheel::before {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 2px; height: 100%;
    background: #78909c;
    transform: translate(-50%, -50%);
}
.mnt-bike .mt-wheel::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 100%; height: 2px;
    background: #78909c;
    transform: translate(-50%, -50%);
}
.mnt-bike .mt-frame-a {
    position: absolute;
    width: 36px; height: 4px;
    background: #c62828;
    border-radius: 2px;
    top: 14px; left: 4px;
    transform: rotate(-20deg);
}
.mnt-bike .mt-frame-b {
    position: absolute;
    width: 50px; height: 4px;
    background: #c62828;
    border-radius: 2px;
    top: 6px; left: 14px;
    transform: rotate(5deg);
}
.mnt-bike .mt-bar {
    position: absolute;
    width: 28px; height: 4px;
    background: #37474f;
    border-radius: 2px;
    top: -2px; left: 2px;
    transform: rotate(-15deg);
}
.mnt-bike .mt-seat {
    position: absolute;
    width: 20px; height: 6px;
    background: #37474f;
    border-radius: 6px 6px 2px 2px;
    top: -6px; left: 34px;
}

/* --- 骑行/待机动画（骑手与坐骑同周期、相位微差，更自然） --- */
@keyframes mountBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-3px); }
}
.lego-mount { animation: mountBounce 1.8s ease-in-out infinite; }
@keyframes riderBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}
.lego-stage.stage-mounted .lego-figure { animation: riderBounce 1.8s ease-in-out 0.15s infinite; }

/* 车轮转动动画 */
@keyframes wheelSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.mnt-bike .mt-wheel-l, .mnt-bike .mt-wheel-r {
    animation: wheelSpin 2s linear infinite;
}
