/* 煎蛋模拟器 */
.fe-hero {
    padding: 24px 0 12px;
}

.fe-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.fe-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.fe-logo {
    font-size: 46px;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,.15));
}

.fe-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text, #f1f5f9);
    margin-bottom: 4px;
}

.fe-sub {
    color: var(--muted, #94a3b8);
    font-size: 14px;
}

.fe-status {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    padding: 12px 18px;
    min-width: 180px;
    text-align: center;
}

.fe-status-label {
    font-size: 12px;
    color: var(--muted, #94a3b8);
    margin-bottom: 4px;
}

.fe-status-text {
    font-size: 20px;
    font-weight: 700;
    color: #fbbf24;
    transition: color .3s ease;
}

.fe-progress {
    margin: 14px 0 22px;
}

.fe-progress-track {
    height: 12px;
    background: rgba(255,255,255,.08);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,.2);
}

.fe-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #fef3c7, #fbbf24, #f59e0b, #dc2626);
    border-radius: 999px;
    transition: width .2s linear, background .3s ease;
    box-shadow: 0 0 10px rgba(251,191,36,.25);
}

.fe-progress-hint {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted, #94a3b8);
    margin-top: 6px;
}

.fe-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    padding: 30px 0;
}

/* 平底锅 */
.fe-pan {
    position: relative;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,.12), transparent 40%),
        radial-gradient(circle at 50% 50%, #2d3748 0%, #1a202c 60%, #0f172a 100%);
    box-shadow:
        inset -12px -12px 30px rgba(0,0,0,.5),
        inset 8px 8px 20px rgba(255,255,255,.06),
        0 18px 45px rgba(0,0,0,.35);
    cursor: pointer;
    transition: transform .15s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    z-index: 2;
}

.fe-pan:active {
    transform: scale(.985);
}

.fe-pan::before {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, rgba(255,255,255,.08), transparent 50%);
    pointer-events: none;
}

.fe-handle {
    position: absolute;
    right: -82px;
    top: 50%;
    transform: translateY(-50%);
    width: 110px;
    height: 34px;
    background: linear-gradient(180deg, #4a5568, #2d3748 50%, #1a202c);
    border-radius: 0 10px 10px 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 5px 5px 15px rgba(0,0,0,.3);
    z-index: 1;
}

.fe-handle::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 50px;
    background: linear-gradient(180deg, #1a202c, #0f172a);
    border-radius: 6px;
}

/* 火苗 */
.fe-fire {
    position: absolute;
    left: 50%;
    bottom: -34px;
    transform: translateX(-50%);
    width: 120px;
    height: 50px;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 1;
    opacity: .85;
    pointer-events: none;
}

.fe-flame {
    width: 16px;
    height: 100%;
    background: linear-gradient(to top, #ef4444, #f97316, #facc15, transparent);
    border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%;
    animation: flameFlicker .7s ease-in-out infinite alternate;
    filter: blur(1px);
    transform-origin: bottom center;
}

.fe-flame:nth-child(2) { animation-delay: .15s; height: 110%; }
.fe-flame:nth-child(3) { animation-delay: .3s; width: 14px; }
.fe-flame:nth-child(4) { animation-delay: .45s; height: 95%; }
.fe-flame:nth-child(5) { animation-delay: .6s; width: 12px; }

@keyframes flameFlicker {
    0% { transform: scaleY(1) skewX(-2deg); opacity: .85; }
    100% { transform: scaleY(1.15) skewX(2deg); opacity: 1; }
}

/* 蛋 */
.fe-egg {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 180px;
    height: 145px;
    transform: translate(-50%, -50%);
    transform-style: preserve-3d;
    transition: transform .55s cubic-bezier(.175,.885,.32,1.275), filter .4s ease;
    pointer-events: none;
    z-index: 3;
}

.fe-egg.flipped {
    transform: translate(-50%, -50%) rotateY(180deg) rotateZ(8deg);
}

.fe-white {
    position: absolute;
    inset: 0;
    border-radius: 52% 48% 55% 45% / 56% 50% 50% 44%;
    background: radial-gradient(circle at 35% 32%, rgba(255,255,255,.98), rgba(255,255,255,.75) 55%, rgba(255,255,255,.45) 100%);
    box-shadow: inset 0 0 16px rgba(255,255,255,.5), 0 4px 12px rgba(0,0,0,.12);
    transition: background .6s ease, box-shadow .6s ease, filter .6s ease;
}

.fe-yolk {
    position: absolute;
    left: 50%;
    top: 45%;
    width: 74px;
    height: 74px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #ffee93 0%, #ffd93d 25%, #ff9f1c 70%, #f77f00 100%);
    box-shadow: inset -5px -5px 12px rgba(0,0,0,.12), 0 3px 8px rgba(0,0,0,.15), 0 0 0 2px rgba(255,255,255,.25);
    transition: background .6s ease, box-shadow .6s ease, transform .6s ease;
}

.fe-yolk::after {
    content: '';
    position: absolute;
    left: 22%;
    top: 20%;
    width: 16px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.55);
    transform: rotate(-35deg);
}

/* 熟度阶段 */
.fe-egg.raw .fe-white { background: radial-gradient(circle at 35% 32%, rgba(255,255,255,.95), rgba(255,255,255,.72) 55%, rgba(255,255,255,.45)); }
.fe-egg.soft .fe-white { background: radial-gradient(circle at 35% 32%, rgba(255,255,255,.98), rgba(255,255,255,.9) 50%, rgba(255,255,255,.55)); filter: drop-shadow(0 0 2px rgba(255,200,100,.2)); }
.fe-egg.done .fe-white { background: radial-gradient(circle at 35% 32%, rgba(255,255,255,.95), rgba(255,250,230,.8) 50%, rgba(255,240,200,.55)); }
.fe-egg.crispy .fe-white { background: radial-gradient(circle at 35% 32%, rgba(255,255,255,.9), rgba(255,235,180,.75) 50%, rgba(240,180,90,.45)); box-shadow: inset 0 0 18px rgba(255,160,60,.25); }
.fe-egg.burnt .fe-white { background: radial-gradient(circle at 35% 32%, rgba(180,170,160,.85), rgba(120,100,90,.7) 50%, rgba(80,60,50,.5)); }

.fe-egg.soft .fe-yolk { background: radial-gradient(circle at 32% 28%, #fff4b0 0%, #ffe066 20%, #ffc107 60%, #ff9800 100%); box-shadow: 0 0 12px rgba(255,193,7,.25); }
.fe-egg.done .fe-yolk { background: radial-gradient(circle at 32% 28%, #ffee93 0%, #ffd93d 20%, #ff9f1c 65%, #f77f00 100%); }
.fe-egg.crispy .fe-yolk { background: radial-gradient(circle at 32% 28%, #ffe066 0%, #ffb300 30%, #f57f17 70%, #e65100 100%); box-shadow: inset -4px -4px 10px rgba(0,0,0,.2); }
.fe-egg.burnt .fe-yolk { background: radial-gradient(circle at 32% 28%, #8d6e63 0%, #5d4037 50%, #3e2723 100%); }

/* 蒸汽 */
.fe-steam {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.55), rgba(255,255,255,0));
    pointer-events: none;
    z-index: 4;
    animation: steamRise 1.8s ease-out forwards;
}

@keyframes steamRise {
    0% { transform: translateY(0) scale(.6); opacity: .6; }
    100% { transform: translateY(-110px) scale(1.6); opacity: 0; }
}

/* 盐粒 */
.fe-salt {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255,255,255,.9);
    border-radius: 50%;
    pointer-events: none;
    z-index: 5;
    animation: saltFall .7s ease-in forwards;
}

@keyframes saltFall {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    80% { opacity: .8; }
    100% { transform: translateY(var(--fall, 90px)) scale(.6); opacity: 0; }
}

/* 盘子 */
.fe-plate {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 220px;
    height: 220px;
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffffff, #e2e8f0 60%, #cbd5e1 100%);
    box-shadow: 0 8px 25px rgba(0,0,0,.2), inset 0 0 12px rgba(255,255,255,.8);
    z-index: 6;
    transition: transform .5s cubic-bezier(.175,.885,.32,1.275);
    pointer-events: none;
}

.fe-plate::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 150px;
    height: 150px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #f8fafc, #e2e8f0 70%, #cbd5e1);
    box-shadow: inset 0 2px 6px rgba(0,0,0,.08);
}

.fe-plate.show {
    transform: translate(-50%, -50%) scale(1);
}

/* 结果层 */
.fe-result {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    text-align: center;
    padding-top: 18px;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity .4s ease, transform .4s ease;
}

.fe-result.show {
    opacity: 1;
    transform: translateY(0);
}

.fe-result-emoji {
    font-size: 42px;
    line-height: 1;
    margin-bottom: 6px;
}

.fe-result-title {
    font-size: 22px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 4px;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.fe-result-desc {
    font-size: 14px;
    color: #cbd5e1;
    text-shadow: 0 1px 4px rgba(0,0,0,.4);
}

/* 控制区 */
.fe-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 18px 0 14px;
}

.fe-btn {
    appearance: none;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.08);
    color: #f1f5f9;
    border-radius: 12px;
    padding: 11px 18px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, transform .1s ease, box-shadow .2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fe-btn:hover { background: rgba(255,255,255,.14); }
.fe-btn:active { transform: scale(.96); }

.fe-btn.primary {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 18px rgba(249,115,22,.25);
}

.fe-btn.primary:hover { box-shadow: 0 8px 22px rgba(249,115,22,.35); }

.fe-btn.danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-color: transparent;
    color: #fff;
}

.fe-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* 提示 */
.fe-tips {
    background: rgba(255,255,255,.04);
    border: 1px dashed rgba(255,255,255,.1);
    border-radius: 14px;
    padding: 14px 18px;
    margin-top: 16px;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.7;
}

.fe-tips strong { color: #fbbf24; }

/* 响应式 */
@media (max-width: 640px) {
    .fe-pan { width: 280px; height: 280px; }
    .fe-handle { right: -66px; width: 84px; height: 26px; }
    .fe-egg { width: 150px; height: 120px; }
    .fe-yolk { width: 60px; height: 60px; }
    .fe-stage { min-height: 360px; }
    .fe-head { flex-direction: column; align-items: flex-start; }
    .fe-title { font-size: 22px; }
}
