/* ================================================================
   纸娃娃 - 乐高小人造型
   ================================================================ */
.paperdoll-wrap {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
    flex-wrap: wrap;
}
.paperdoll {
    position: relative;
    width: 100%;
    max-width: 160px;
    aspect-ratio: 4 / 5;
    background: linear-gradient(180deg, #e8eaf6 0%, #c5cae9 100%);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    overflow: visible;
    margin: 0 auto;
}

/* --- 乐高小人主体 --- */
.lego-figure {
    position: relative;
    width: 80px; height: 150px;
    transform: scale(1.2);
    transform-origin: 50% 65%;
}

/* --- 头部 --- */
.lego-head {
    position: absolute;
    width: 36px; height: 28px;
    background: #fdd835;
    border-radius: 7px;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
}
.lego-stud {
    position: absolute;
    width: 10px; height: 7px;
    background: #fdd835;
    border-radius: 5px 5px 2px 2px;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}
/* 眼睛 */
.lego-eyes {
    position: absolute;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.lego-eyes i {
    display: block;
    width: 5px; height: 5px;
    background: #333;
    border-radius: 50%;
}
/* 嘴 */
.lego-mouth {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px; height: 5px;
    border-bottom: 2px solid #333;
    border-radius: 0 0 6px 6px;
}

/* --- 表情变体 --- */
/* face_01: 微笑（默认样式） */
/* face_02: 大笑 */
.lego-figure.face_02 .lego-mouth {
    width: 14px; height: 7px;
    border-bottom-width: 2.5px;
    border-radius: 0 0 8px 8px;
    bottom: 2px;
}
/* face_03: 酷（墨镜） */
.lego-figure.face_03 .lego-eyes i {
    width: 11px; height: 5px;
    background: #111;
    border-radius: 2px;
}
.lego-figure.face_03 .lego-mouth {
    width: 10px;
    border-bottom: 2px solid #333;
    border-radius: 0;
    bottom: 5px;
}
/* face_04: 学霸（眼镜 + 淡定） */
.lego-figure.face_04 .lego-eyes i {
    width: 6px; height: 6px;
    border: 1.5px solid #333;
    background: transparent;
    border-radius: 3px;
}
.lego-figure.face_04 .lego-mouth {
    width: 8px;
    border-bottom-width: 1.5px;
}
/* face_05: 眨眼 */
.lego-figure.face_05 .lego-eyes i:first-child {
    width: 5px; height: 5px;
}
.lego-figure.face_05 .lego-eyes i:last-child {
    width: 6px; height: 2px;
    background: transparent;
    border-top: 2px solid #333;
    border-radius: 0;
    margin-top: 2px;
}
.lego-figure.face_05 .lego-mouth {
    width: 9px;
}
/* face_06: 惊讶 */
.lego-figure.face_06 .lego-eyes i {
    width: 7px; height: 7px;
    border: 1px solid #333;
    background: #fff;
}
.lego-figure.face_06 .lego-mouth {
    width: 8px; height: 8px;
    background: #333;
    border-radius: 50%;
    border-bottom: none;
    bottom: 2px;
}
/* face_07: 生气 */
.lego-figure.face_07 .lego-eyes {
    gap: 6px;
}
.lego-figure.face_07 .lego-eyes i {
    width: 5px; height: 5px;
    border-radius: 50%;
    position: relative;
}
.lego-figure.face_07 .lego-eyes i::before {
    content: '';
    position: absolute;
    width: 8px; height: 2px;
    background: #333;
    top: -4px; left: -2px;
    transform: rotate(-20deg);
}
.lego-figure.face_07 .lego-eyes i:last-child::before {
    transform: rotate(20deg);
    left: -2px;
}
.lego-figure.face_07 .lego-mouth {
    width: 10px;
    border-bottom: none;
    border-top: 2px solid #333;
    border-radius: 6px 6px 0 0;
    bottom: 3px;
}
/* face_08: 可爱（大眼星星） */
.lego-figure.face_08 .lego-eyes { gap: 6px; }
.lego-figure.face_08 .lego-eyes i {
    width: 7px; height: 7px;
    background: #333;
    border-radius: 50%;
    position: relative;
}
.lego-figure.face_08 .lego-eyes i::after {
    content: '';
    position: absolute;
    width: 2px; height: 2px;
    background: #fff;
    border-radius: 50%;
    top: 1px; left: 2px;
}
.lego-figure.face_08 .lego-mouth {
    width: 7px; height: 4px;
    border-bottom-width: 1.5px;
    border-radius: 0 0 4px 4px;
    bottom: 4px;
}

/* --- 身体 --- */
.lego-torso {
    position: absolute;
    width: 34px; height: 38px;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 4px 4px 2px 2px;
    z-index: 3;
}
/* 身体颜色 */
.lego-figure.body_01 .lego-torso,
.lego-figure.body_01 .lego-arm { background: #1565c0; }
.lego-figure.body_02 .lego-torso,
.lego-figure.body_02 .lego-arm { background: #c62828; }
.lego-figure.body_03 .lego-torso,
.lego-figure.body_03 .lego-arm { background: #2e7d32; }
/* body_04: 海盗条纹 */
.lego-figure.body_04 .lego-torso {
    background: repeating-linear-gradient(0deg, #c62828 0px, #c62828 7px, #fff 7px, #fff 14px);
}
.lego-figure.body_04 .lego-arm { background: #c62828; }
/* body_05: 骑士银甲 */
.lego-figure.body_05 .lego-torso {
    background: linear-gradient(180deg, #b0bec5 0%, #78909c 100%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3);
}
.lego-figure.body_05 .lego-torso::after {
    content: '★';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: #ffb300;
    font-size: 10px;
    line-height: 1;
}
.lego-figure.body_05 .lego-arm { background: #90a4ae; }
/* body_06: 太空白 */
.lego-figure.body_06 .lego-torso {
    background: #eceff1;
    box-shadow: inset 0 10px 0 rgba(25,118,210,0.15), inset 0 12px 0 rgba(25,118,210,0.3), inset 0 14px 0 rgba(25,118,210,0.15);
}
.lego-figure.body_06 .lego-arm { background: #cfd8dc; }

/* --- 手臂 --- */
.lego-arm {
    position: absolute;
    width: 8px; height: 28px;
    top: 56px;
    border-radius: 4px;
    z-index: 2;
}
.lego-arm-l { left: 14px; }
.lego-arm-r { right: 14px; }

/* --- 手 --- */
.lego-hand {
    position: absolute;
    width: 11px; height: 10px;
    background: #fdd835;
    border-radius: 50%;
    z-index: 6;
}
.lego-hand-l { left: 6px; top: 78px; }
.lego-hand-r { right: 6px; top: 78px; }

/* --- 髋部 --- */
.lego-hips {
    position: absolute;
    width: 34px; height: 8px;
    background: #5d4037;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0 0 3px 3px;
    z-index: 1;
}

/* --- 腿 --- */
.lego-leg {
    position: absolute;
    width: 14px; height: 28px;
    background: #444;
    top: 98px;
    border-radius: 0 0 5px 5px;
    z-index: 1;
}
.lego-leg-l { left: 26px; }
.lego-leg-r { right: 26px; }

/* --- 裤子变体 --- */
/* bottom_01: 经典蓝裤（默认） */
.lego-figure.bottom_01 .lego-hips { background: #1565c0; }
.lego-figure.bottom_01 .lego-leg { background: #1565c0; }
/* bottom_02: 酷黑长裤 */
.lego-figure.bottom_02 .lego-hips { background: #212121; }
.lego-figure.bottom_02 .lego-leg { background: #212121; }
/* bottom_03: 卡其休闲裤 */
.lego-figure.bottom_03 .lego-hips { background: #8d6e63; }
.lego-figure.bottom_03 .lego-leg { background: #8d6e63; }
/* bottom_04: 热情红裤 */
.lego-figure.bottom_04 .lego-hips { background: #c62828; }
.lego-figure.bottom_04 .lego-leg { background: #c62828; }
/* bottom_05: 自然绿裤 */
.lego-figure.bottom_05 .lego-hips { background: #2e7d32; }
.lego-figure.bottom_05 .lego-leg { background: #2e7d32; }
/* bottom_06: 纯白短裤 */
.lego-figure.bottom_06 .lego-hips { background: #eceff1; }
.lego-figure.bottom_06 .lego-leg { background: #cfd8dc; }

/* --- 头发变体 --- */
.lego-hair {
    position: absolute;
    z-index: 8;
    pointer-events: none;
}
/* hair_01: 棒球帽 */
.lego-figure.hair_01 .lego-hair {
    width: 38px; height: 14px;
    background: #e53935;
    border-radius: 18px 18px 3px 3px;
    top: 6px; left: 50%;
    transform: translateX(-50%);
}
.lego-figure.hair_01 .lego-hair::after {
    content: '';
    position: absolute;
    width: 20px; height: 4px;
    background: #c62828;
    border-radius: 2px;
    bottom: -5px; left: -4px;
}
/* hair_02: 金发短发 */
.lego-figure.hair_02 .lego-hair {
    width: 38px; height: 16px;
    background: #ffb300;
    border-radius: 18px 18px 4px 4px;
    top: 5px; left: 50%;
    transform: translateX(-50%);
}
/* hair_03: 棕色卷发 */
.lego-figure.hair_03 .lego-hair {
    width: 40px; height: 18px;
    background: #5d4037;
    border-radius: 50%;
    top: 4px; left: 50%;
    transform: translateX(-50%);
}
.lego-figure.hair_03 .lego-hair::before,
.lego-figure.hair_03 .lego-hair::after {
    content: '';
    position: absolute;
    width: 10px; height: 10px;
    background: #5d4037;
    border-radius: 50%;
    top: 4px;
}
.lego-figure.hair_03 .lego-hair::before { left: -3px; }
.lego-figure.hair_03 .lego-hair::after { right: -3px; }
/* hair_04: 红色长发 */
.lego-figure.hair_04 .lego-hair {
    width: 38px; height: 30px;
    background: #d32f2f;
    border-radius: 18px 18px 3px 3px;
    top: 4px; left: 50%;
    transform: translateX(-50%);
}
/* hair_05: 深色刺头 */
.lego-figure.hair_05 .lego-hair {
    width: 36px; height: 20px;
    background: #37474f;
    border-radius: 8px 8px 2px 2px;
    top: 3px; left: 50%;
    transform: translateX(-50%);
}
.lego-figure.hair_05 .lego-hair::after {
    content: '';
    position: absolute;
    top: -6px; left: 50%;
    transform: translateX(-50%);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 7px solid #37474f;
}
/* hair_06: 黑色双马尾 */
.lego-figure.hair_06 .lego-hair {
    width: 36px; height: 14px;
    background: #212121;
    border-radius: 18px 18px 3px 3px;
    top: 6px; left: 50%;
    transform: translateX(-50%);
}
.lego-figure.hair_06 .lego-hair::before,
.lego-figure.hair_06 .lego-hair::after {
    content: '';
    position: absolute;
    width: 6px; height: 18px;
    background: #212121;
    border-radius: 0 0 4px 4px;
    bottom: -16px;
}
.lego-figure.hair_06 .lego-hair::before { left: 2px; }
.lego-figure.hair_06 .lego-hair::after { right: 2px; }
/* hair_07: 海盗头巾 🏴‍☠️ */
.lego-figure.hair_07 .lego-hair {
    width: 38px; height: 14px;
    background: #111;
    border-radius: 18px 18px 3px 3px;
    top: 5px; left: 50%;
    transform: translateX(-50%);
}
.lego-figure.hair_07 .lego-hair::before {
    content: '☠';
    position: absolute;
    top: 2px; left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 7px;
    line-height: 1;
}
.lego-figure.hair_07 .lego-hair::after {
    content: '';
    position: absolute;
    right: -4px; top: 2px;
    border-left: 8px solid #111;
    border-top: 4px solid transparent;
    border-bottom: 6px solid transparent;
}
/* hair_08: 骑士头盔 ⚔️ */
.lego-figure.hair_08 .lego-hair {
    width: 38px; height: 26px;
    background: linear-gradient(180deg, #b0bec5 0%, #78909c 50%, #90a4ae 100%);
    border-radius: 12px 12px 2px 2px;
    top: 0; left: 50%;
    transform: translateX(-50%);
    border-bottom: 2px solid #546e7a;
}
.lego-figure.hair_08 .lego-hair::before {
    content: '';
    position: absolute;
    width: 18px; height: 2px;
    background: #37474f;
    top: 10px; left: 50%;
    transform: translateX(-50%);
    border-radius: 1px;
    box-shadow: 0 4px 0 #37474f, 0 8px 0 #37474f;
}
/* hair_09: 巫师帽 🧙 */
.lego-figure.hair_09 .lego-hair {
    width: 28px; height: 28px;
    background: #1a237e;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    top: -2px; left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}
.lego-figure.hair_09 .lego-hair::after {
    content: '✦';
    position: absolute;
    top: 6px; left: 50%;
    transform: translateX(-50%);
    color: #ffb300;
    font-size: 6px;
    line-height: 1;
}
/* hair_10: 维京头盔 */
.lego-figure.hair_10 .lego-hair {
    width: 38px; height: 18px;
    background: #6d4c41;
    border-radius: 12px 12px 3px 3px;
    top: 4px; left: 50%;
    transform: translateX(-50%);
}
.lego-figure.hair_10 .lego-hair::before,
.lego-figure.hair_10 .lego-hair::after {
    content: '';
    position: absolute;
    width: 4px; height: 16px;
    background: #bcaaa4;
    border-radius: 2px;
    top: -10px;
}
.lego-figure.hair_10 .lego-hair::before { left: 4px; transform: rotate(-15deg); }
.lego-figure.hair_10 .lego-hair::after { right: 4px; transform: rotate(15deg); }
/* hair_11: 探险帽 🤠 */
.lego-figure.hair_11 .lego-hair {
    width: 42px; height: 14px;
    background: #8d6e63;
    border-radius: 50%;
    top: 5px; left: 50%;
    transform: translateX(-50%);
}
.lego-figure.hair_11 .lego-hair::after {
    content: '';
    position: absolute;
    width: 48px; height: 8px;
    background: #8d6e63;
    border-radius: 50%;
    top: 4px; left: -3px;
}
/* hair_12: 忍者面罩 🥷 */
.lego-figure.hair_12 .lego-hair {
    width: 38px; height: 22px;
    background: #212121;
    border-radius: 10px 10px 0 0;
    top: 2px; left: 50%;
    transform: translateX(-50%);
}
.lego-figure.hair_12 .lego-hair::before {
    content: '';
    position: absolute;
    width: 28px; height: 3px;
    background: #424242;
    bottom: 6px; left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* --- 装备武器 --- */
.lego-weapon {
    position: absolute;
    z-index: 7;
    pointer-events: none;
}
/* 剑 */
.lego-weapon.wpn-sword {
    width: 3px; height: 38px;
    background: linear-gradient(180deg, #cfd8dc, #90a4ae);
    border-radius: 1px;
    right: 2px; top: 36px;
    transform: rotate(12deg);
}
.lego-weapon.wpn-sword::before {
    content: '';
    position: absolute;
    top: -4px; left: 50%;
    transform: translateX(-50%);
    width: 10px; height: 3px;
    background: #ffb300;
    border-radius: 1px;
}
.lego-weapon.wpn-sword::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 6px; height: 3px;
    background: #ffb300;
    border-radius: 1px;
}
/* 匕首/笔 */
.lego-weapon.wpn-dagger {
    width: 2px; height: 26px;
    background: #78909c;
    border-radius: 1px;
    right: 3px; top: 48px;
    transform: rotate(20deg);
}
.lego-weapon.wpn-dagger::before {
    content: '';
    position: absolute;
    top: -3px; left: 50%;
    transform: translateX(-50%);
    width: 6px; height: 2px;
    background: #ffb300;
    border-radius: 1px;
}
/* 法杖 */
.lego-weapon.wpn-staff {
    width: 3px; height: 52px;
    background: linear-gradient(180deg, #8d6e63, #5d4037);
    border-radius: 1px;
    right: 2px; top: 24px;
    transform: rotate(5deg);
}
.lego-weapon.wpn-staff::before {
    content: '◆';
    position: absolute;
    top: -10px; left: 50%;
    transform: translateX(-50%);
    color: #7b1fa2;
    font-size: 12px;
    line-height: 1;
}
/* 盾牌（左手） */

/* 斧头 */

.lego-weapon.wpn-axe::before {
    content: '';
    position: absolute;
    top: -6px; left: 50%;
    transform: translateX(-50%);
    width: 14px; height: 10px;
    background: #90a4ae;
    border-radius: 3px 3px 2px 2px;
    clip-path: polygon(20% 0%, 80% 0%, 100% 40%, 90% 100%, 10% 100%, 0% 40%);
}
/* 弓箭 */

.lego-weapon.wpn-bow::before {
    content: '';
    position: absolute;
    right: -8px; top: 50%;
    transform: translateY(-50%);
    width: 6px; height: 1.5px;
    background: #bcaaa4;
    border-radius: 1px;
}
/* 长矛 */

.lego-weapon.wpn-spear::before {
    content: '';
    position: absolute;
    top: -4px; left: 50%;
    transform: translateX(-50%);
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-bottom: 8px solid #b0bec5;
}
/* 魔法棒 */

.lego-weapon.wpn-wand::before {
    content: '★';
    position: absolute;
    top: -8px; left: 50%;
    transform: translateX(-50%);
    color: #ffb300;
    font-size: 10px;
    line-height: 1;
}
/* 头部装备叠加 */
.lego-headgear {
    position: absolute;
    z-index: 9;
    pointer-events: none;
}
/* 头盔 */
.lego-headgear.wpn-helmet {
    width: 36px; height: 20px;
    background: #78909c;
    border-radius: 18px 18px 3px 3px;
    top: 6px; left: 50%;
    transform: translateX(-50%);
}
/* 王冠 */
.lego-headgear.wpn-crown {
    width: 22px; height: 14px;
    top: 4px; left: 50%;
    transform: translateX(-50%);
    background: #ffb300;
    clip-path: polygon(0% 100%, 0% 40%, 20% 0%, 40% 30%, 60% 0%, 80% 30%, 100% 0%, 100% 40%, 100% 100%);
}
/* 身体装备覆盖 */
.lego-body-equip {
    position: absolute;
    width: 34px; height: 38px;
    top: 50px; left: 50%;
    transform: translateX(-50%);
    border-radius: 4px;
    z-index: 3;
    pointer-events: none;
}
.lego-body-equip.wpn-armor {
    background: rgba(120, 144, 156, 0.6);
}
.lego-body-equip.wpn-robe {
    background: linear-gradient(180deg, rgba(25, 118, 210, 0.5), rgba(25, 118, 210, 0.7));
    border-radius: 4px 4px 8px 8px;
    height: 46px;
    top: 48px;
}
/* 披风 */
.lego-body-equip.wpn-cape {
    width: 28px; height: 42px;
    background: linear-gradient(180deg, rgba(156, 39, 176, 0.7), rgba(156, 39, 176, 0.3));
    border-radius: 0 0 12px 12px;
    top: 50px; left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

/* 坐骑 */
.lego-mount {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    bottom: -5px; left: 50%;
    transform: translateX(-50%);
    font-size: 5.5rem;
    line-height: 1;
    opacity: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

/* --- 定制按钮 --- */
.paperdoll-custom { flex: 1; min-width: 220px; }
.custom-group { margin-bottom: var(--space-sm); }
.custom-group label { font-size: 0.85rem; color: var(--text-light, #888); }
.custom-opts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.custom-opt {
    width: 44px; height: 44px;
    padding: 4px;
    border: 2px solid transparent;
    border-radius: 10px;
    background: var(--bg-secondary, #f4f5f7);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: border-color 0.2s, transform 0.15s;
}
.custom-opt:hover { transform: scale(1.08); }
.custom-opt.selected { border-color: #667eea; background: #eef0ff; }

/* 定制选项内的小预览 */
.lego-opt-body {
    width: 24px; height: 20px;
    border-radius: 3px;
}
.lego-opt-body.body_01 { background: #1565c0; }
.lego-opt-body.body_02 { background: #c62828; }
.lego-opt-body.body_03 { background: #2e7d32; }

.lego-opt-face {
    width: 24px; height: 20px;
    background: #fdd835;
    border-radius: 6px;
    position: relative;
}
/* 面部预览的表情差异通过 JS 内联样式覆盖 */

.lego-opt-hair {
    width: 28px; height: 14px;
    border-radius: 12px 12px 3px 3px;
}
.lego-opt-hair.hair_01 { background: #e53935; }
.lego-opt-hair.hair_02 { background: #ffb300; }
.lego-opt-hair.hair_03 { background: #5d4037; border-radius: 50%; height: 16px; }
.lego-opt-hair.hair_04 { background: #d32f2f; height: 18px; }
.lego-opt-hair.hair_05 { background: #37474f; border-radius: 6px 6px 2px 2px; height: 16px; }
.lego-opt-hair.hair_06 { background: #212121; }
/* 新增发型预览 */
.lego-opt-hair.hair_07 { background: #111; }
.lego-opt-hair.hair_07::after { content: '☠'; font-size: 5px; display: block; text-align: center; color: #fff; line-height: 1; }
.lego-opt-hair.hair_08 { background: linear-gradient(180deg, #b0bec5, #78909c); border-radius: 8px 8px 2px 2px; }
.lego-opt-hair.hair_09 { background: #1a237e; clip-path: polygon(50% 0%, 15% 100%, 85% 100%); }
.lego-opt-hair.hair_10 { background: #6d4c41; }
.lego-opt-hair.hair_11 { background: #8d6e63; border-radius: 50%; height: 16px; }
.lego-opt-hair.hair_12 { background: #212121; border-radius: 6px 6px 0 0; height: 16px; }
.lego-opt-hair.hair_13 { background: #ff7043; height: 20px; border-radius: 4px 4px 2px 2px; }
.lego-opt-hair.hair_13::after { content: ''; display: block; width: 4px; height: 10px; background: #ff7043; margin: 2px auto 0; border-radius: 2px; }
.lego-opt-hair.hair_14 { background: #eceff1; border-radius: 50%; height: 18px; }
.lego-opt-hair.hair_14::after { content: ''; display: block; width: 12px; height: 3px; background: rgba(100,181,246,0.8); margin: 4px auto 0; border-radius: 2px; }
.lego-opt-hair.hair_15 { background: #212121; height: 18px; border-radius: 3px 3px 0 0; }
.lego-opt-hair.hair_15::before { content: ''; display: block; width: 100%; height: 2px; background: #ffb300; border-radius: 1px; }
.lego-opt-hair.hair_16 { background: linear-gradient(90deg, #00bcd4, #9c27b0); border-radius: 6px 6px 3px 3px; height: 16px; }
.lego-opt-hair.hair_17 { background: #fce4ec; border-radius: 50%; height: 16px; }
.lego-opt-hair.hair_17::after { content: ''; display: block; width: 3px; height: 8px; background: #ffb300; margin: -2px auto 0; border-radius: 2px; }
.lego-opt-hair.hair_18 { background: linear-gradient(180deg, #37474f, #263238); border-radius: 8px 8px 2px 2px; height: 18px; }
.lego-opt-hair.hair_18::after { content: ''; display: block; width: 8px; height: 2px; background: #00e5ff; margin: 6px auto 0; border-radius: 1px; }

/* 裤子预览 */
.lego-opt-bottom {
    width: 28px; height: 18px;
    border-radius: 2px 2px 5px 5px;
    display: block;
}
.lego-opt-bottom.bottom_01 { background: #1565c0; }
.lego-opt-bottom.bottom_02 { background: #212121; }
.lego-opt-bottom.bottom_03 { background: #8d6e63; }
.lego-opt-bottom.bottom_04 { background: #c62828; }
.lego-opt-bottom.bottom_05 { background: #2e7d32; }
.lego-opt-bottom.bottom_06 { background: linear-gradient(180deg, #eceff1, #cfd8dc); }

/* 新增体型预览 */
.lego-opt-body.body_04 { background: repeating-linear-gradient(0deg, #c62828 0px, #c62828 5px, #fff 5px, #fff 10px); }
.lego-opt-body.body_05 { background: linear-gradient(180deg, #b0bec5, #78909c); }
.lego-opt-body.body_06 { background: #eceff1; box-shadow: inset 0 10px 0 rgba(25,118,210,0.2); }
.lego-opt-body.body_07 { background: linear-gradient(180deg, #1a237e, #283593); }
.lego-opt-body.body_07::after { content: ''; display: block; width: 16px; height: 2px; background: #ffb300; margin: 6px auto 0; border-radius: 1px; }
.lego-opt-body.body_08 { background: #c62828; }
.lego-opt-body.body_08::after { content: ''; display: block; width: 12px; height: 2px; background: #ffb300; margin: 8px auto 0; border-radius: 1px; }
.lego-opt-body.body_09 { background: #eceff1; box-shadow: inset 0 8px 0 rgba(255,152,0,0.4); }
.lego-opt-body.body_10 { background: linear-gradient(180deg, #7b1fa2, #4a148c); }

/* --- 新增体型（body_07-10） --- */
/* body_07: 幻影忍者服（乐高幻影忍者·神龙崛起） */
.lego-figure.body_07 .lego-torso {
    background: linear-gradient(180deg, #1a237e 0%, #283593 50%, #1a237e 100%);
}
.lego-figure.body_07 .lego-torso::after {
    content: '';
    position: absolute;
    width: 16px; height: 2px;
    background: #ffb300;
    top: 12px; left: 50%;
    transform: translateX(-50%);
    border-radius: 1px;
    box-shadow: 0 6px 0 #ffb300, 0 12px 0 #ffb300;
}
.lego-figure.body_07 .lego-arm { background: #283593; }
/* body_08: 悟空小侠服（乐高 Monkie Kid） */
.lego-figure.body_08 .lego-torso {
    background: linear-gradient(180deg, #c62828 0%, #e53935 40%, #c62828 100%);
}
.lego-figure.body_08 .lego-torso::after {
    content: '🔥';
    position: absolute;
    font-size: 8px;
    line-height: 1;
    top: 10px; left: 50%;
    transform: translateX(-50%);
}
.lego-figure.body_08 .lego-arm { background: #e53935; }
/* body_09: 火星探索服（乐高城市太空系列） */
.lego-figure.body_09 .lego-torso {
    background: linear-gradient(180deg, #eceff1 0%, #fff 50%, #eceff1 100%);
    box-shadow: inset 0 10px 0 rgba(255,152,0,0.3);
}
.lego-figure.body_09 .lego-arm { background: #cfd8dc; }
/* body_10: 梦境猎人服（乐高梦境城猎人） */
.lego-figure.body_10 .lego-torso {
    background: linear-gradient(180deg, #7b1fa2 0%, #9c27b0 40%, #6a1b9a 100%);
}
.lego-figure.body_10 .lego-torso::after {
    content: '✨';
    position: absolute;
    font-size: 7px;
    line-height: 1;
    top: 12px; left: 50%;
    transform: translateX(-50%);
}
.lego-figure.body_10 .lego-arm { background: #7b1fa2; }

/* --- 新增表情（face_09-12） --- */
/* face_09: 星星眼（金色星形瞳孔 + 开口笑） */
.lego-figure.face_09 .lego-eyes i {
    background: #ffb300;
    width: 5px; height: 5px;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%,
                       50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.lego-figure.face_09 .lego-mouth {
    width: 8px; height: 5px;
    background: #333;
    border-radius: 0 0 4px 4px;
    border-top: none;
}
/* face_10: 眯眯眼（满足闭眼笑） */
.lego-figure.face_10 .lego-eyes i {
    width: 5px; height: 2px;
    background: #333;
    border-radius: 2px;
    clip-path: none;
}
.lego-figure.face_10 .lego-mouth {
    width: 8px; height: 4px;
    background: transparent;
    border-bottom: 2px solid #333;
    border-radius: 0 0 3px 3px;
}
/* face_11: 吐舌鬼脸（单眼眨眼 + 小舌头） */
.lego-figure.face_11 .lego-eyes i:first-child { width: 5px; height: 2px; border-radius: 1px; }
.lego-figure.face_11 .lego-eyes i:last-child { width: 5px; height: 5px; }
.lego-figure.face_11 .lego-mouth {
    width: 7px; height: 6px;
    background: #333;
    border-radius: 0 0 2px 2px;
}
.lego-figure.face_11 .lego-mouth::after {
    content: '';
    position: absolute;
    width: 4px; height: 3px;
    background: #e57373;
    border-radius: 0 0 2px 2px;
    bottom: -2px; left: 50%;
    transform: translateX(-50%);
}
/* face_12: 自信挑眉（一边眉毛上挑 + 歪嘴笑） */
.lego-figure.face_12 .lego-eyes { gap: 6px; }
.lego-figure.face_12 .lego-eyes i:first-child {
    width: 5px; height: 5px;
    transform: translateY(-1px);
}
.lego-figure.face_12 .lego-eyes i:last-child {
    width: 5px; height: 5px;
}
.lego-figure.face_12 .lego-mouth {
    width: 7px; height: 3px;
    background: transparent;
    border-bottom: 2px solid #333;
    border-radius: 0 0 3px 1px;
    transform: translateX(1px);
}

/* --- 新增发型（hair_13-18） --- */
/* hair_13: 活力高马尾（乐高 Friends） */
.lego-figure.hair_13 .lego-hair {
    width: 34px; height: 22px;
    background: #ff7043;
    border-radius: 16px 16px 4px 4px;
    top: 4px; left: 50%;
    transform: translateX(-50%);
}
.lego-figure.hair_13 .lego-hair::after {
    content: '';
    position: absolute;
    width: 6px; height: 18px;
    background: #ff7043;
    border-radius: 3px;
    right: -2px; top: 8px;
    transform: rotate(-10deg);
}
/* hair_14: 宇航员头盔（乐高城市·太空 2024，半透明面罩） */
.lego-figure.hair_14 .lego-hair {
    width: 40px; height: 28px;
    background: linear-gradient(180deg, #eceff1, #cfd8dc);
    border-radius: 50% 50% 4px 4px;
    top: 0; left: 50%;
    transform: translateX(-50%);
}
.lego-figure.hair_14 .lego-hair::before {
    content: '';
    position: absolute;
    width: 24px; height: 14px;
    background: rgba(100,181,246,0.6);
    border-radius: 10px 10px 4px 4px;
    top: 8px; left: 50%;
    transform: translateX(-50%);
}
.lego-figure.hair_14 .lego-hair::after {
    content: '';
    position: absolute;
    width: 8px; height: 3px;
    background: #546e7a;
    border-radius: 1px;
    bottom: 6px; left: 50%;
    transform: translateX(-50%);
}
/* hair_15: 小侠冲天发（乐高悟空小侠，金箍 + 尖刺发） */
.lego-figure.hair_15 .lego-hair {
    width: 32px; height: 26px;
    background: #212121;
    border-radius: 8px 8px 0 0;
    top: -4px; left: 50%;
    transform: translateX(-50%);
}
.lego-figure.hair_15 .lego-hair::before {
    content: '';
    position: absolute;
    width: 100%; height: 3px;
    background: #ffb300;
    border-radius: 2px;
    bottom: 2px;
}
.lego-figure.hair_15 .lego-hair::after {
    content: '';
    position: absolute;
    top: -8px; left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 10px solid #212121;
}
/* hair_16: 梦境渐变发（乐高梦境城猎人，青→紫挑染） */
.lego-figure.hair_16 .lego-hair {
    width: 36px; height: 20px;
    background: linear-gradient(90deg, #00bcd4, #00acc1 40%, #9c27b0 60%, #7b1fa2);
    border-radius: 14px 14px 3px 3px;
    top: 4px; left: 50%;
    transform: translateX(-50%);
}
/* hair_17: 独角兽兜帽（乐高人仔抽抽乐） */
.lego-figure.hair_17 .lego-hair {
    width: 40px; height: 22px;
    background: linear-gradient(180deg, #fce4ec, #f8bbd0);
    border-radius: 50% 50% 4px 4px;
    top: 2px; left: 50%;
    transform: translateX(-50%);
}
.lego-figure.hair_17 .lego-hair::before {
    content: '';
    position: absolute;
    width: 5px; height: 14px;
    background: linear-gradient(180deg, #ffb300, #ff8f00);
    border-radius: 3px 3px 0 0;
    top: -8px; left: 50%;
    transform: translateX(-50%);
}
.lego-figure.hair_17 .lego-hair::after {
    content: '';
    position: absolute;
    width: 14px; height: 10px;
    background: #f48fb1;
    border-radius: 2px;
    bottom: -4px; left: 50%;
    transform: translateX(-50%);
}
/* hair_18: 神龙机甲盔（乐高幻影忍者，发光目镜） */
.lego-figure.hair_18 .lego-hair {
    width: 38px; height: 26px;
    background: linear-gradient(180deg, #37474f, #263238);
    border-radius: 12px 12px 2px 2px;
    top: 0; left: 50%;
    transform: translateX(-50%);
}
.lego-figure.hair_18 .lego-hair::before {
    content: '';
    position: absolute;
    width: 20px; height: 3px;
    background: #00e5ff;
    border-radius: 2px;
    top: 10px; left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 6px rgba(0,229,255,0.8);
}
.lego-figure.hair_18 .lego-hair::after {
    content: '';
    position: absolute;
    width: 8px; height: 2px;
    background: #78909c;
    border-radius: 1px;
    top: 18px; left: 50%;
    transform: translateX(-50%);
}

/* ==================== 响应式纸娃娃 ==================== */

/* 手机/窄屏（<768px，未进入三区网格布局）：定制区与下方装备卡片拉开间距 */
@media (max-width: 767px) {
    #gameTabCharacter > .paperdoll-custom {
        margin-bottom: var(--space-lg);
    }
}

/* 手机端：纸娃娃缩小，定制面板全宽 */
@media (max-width: 480px) {
    .paperdoll {
        max-width: 120px;
    }
    .paperdoll-custom {
        min-width: 100%;
    }
    .custom-opt {
        width: 36px;
        height: 36px;
    }
    .lego-stage {
        width: 108px;
        height: 138px;
    }
}
