/* 我的世界附魔背景特效 */
.enchantment-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -9999;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(30, 0, 80, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(0, 50, 100, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 60%, rgba(80, 0, 50, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #0a0520 0%, #1a0b40 50%, #0d0630 100%);
    overflow: hidden;
    font-family: 'Minecraft', monospace;
}

/* 附魔文字漂浮效果 */
.enchantment-text {
    position: absolute;
    color: #55FFFF;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 0 10px #55FFFF, 0 0 20px #55FFFF;
    opacity: 0;
    animation: enchantFloat 8s linear infinite;
    pointer-events: none;
    white-space: nowrap;
}

.enchantment-text.protection { color: #AAAAAA; text-shadow: 0 0 10px #AAAAAA, 0 0 20px #AAAAAA; }
.enchantment-text.sharpness { color: #FF5555; text-shadow: 0 0 10px #FF5555, 0 0 20px #FF5555; }
.enchantment-text.efficiency { color: #FFFF55; text-shadow: 0 0 10px #FFFF55, 0 0 20px #FFFF55; }
.enchantment-text.unbreaking { color: #AA00AA; text-shadow: 0 0 10px #AA00AA, 0 0 20px #AA00AA; }
.enchantment-text.fortune { color: #55FF55; text-shadow: 0 0 10px #55FF55, 0 0 20px #55FF55; }
.enchantment-text.looting { color: #FFAA00; text-shadow: 0 0 10px #FFAA00, 0 0 20px #FFAA00; }
.enchantment-text.silk_touch { color: #55FFFF; text-shadow: 0 0 10px #55FFFF, 0 0 20px #55FFFF; }
.enchantment-text.mending { color: #00AAAA; text-shadow: 0 0 10px #00AAAA, 0 0 20px #00AAAA; }

@keyframes enchantFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* 附魔台符文效果 */
.enchantment-rune {
    position: absolute;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, transparent 30%, rgba(85, 255, 255, 0.1) 70%);
    border: 1px solid rgba(85, 255, 255, 0.3);
    border-radius: 50%;
    animation: runePulse 4s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(85, 255, 255, 0.2);
}

@keyframes runePulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 0.6;
    }
}

/* 经验球效果 */
.xp-orb {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #7CFC00 20%, #32CD32 70%);
    border-radius: 50%;
    animation: xpFloat 6s linear infinite;
    box-shadow: 0 0 10px #7CFC00;
}

@keyframes xpFloat {
    0% {
        transform: translateY(100vh) translateX(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px) scale(0.5);
        opacity: 0;
    }
}

/* 附魔粒子效果 */
.enchant-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #55FFFF;
    border-radius: 50%;
    animation: particleDrift 5s linear infinite;
    box-shadow: 0 0 5px #55FFFF;
}

@keyframes particleDrift {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(200px, -200px) rotate(360deg);
        opacity: 0;
    }
}

/* 书本翻页效果 */
.book-page {
    position: absolute;
    width: 60px;
    height: 80px;
    background: linear-gradient(45deg, #8B4513, #A0522D);
    border-radius: 5px;
    animation: bookFlip 12s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(139, 69, 19, 0.5);
    opacity: 0.3;
}

@keyframes bookFlip {
    0%, 100% {
        transform: rotateY(0deg) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: rotateY(180deg) scale(1.1);
        opacity: 0.6;
    }
}

/* 魔法阵效果 */
.magic-circle {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(85, 255, 255, 0.3);
    border-radius: 50%;
    animation: circleRotate 20s linear infinite;
    box-shadow: 0 0 30px rgba(85, 255, 255, 0.2);
}

.magic-circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    border: 1px solid rgba(255, 85, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: circleRotateReverse 15s linear infinite;
}

@keyframes circleRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes circleRotateReverse {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

/* 附魔等级罗马数字 */
.enchant-level {
    position: absolute;
    color: #FFD700;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 0 10px #FFD700;
    animation: levelFloat 10s linear infinite;
    opacity: 0;
}

@keyframes levelFloat {
    0% {
        transform: translateY(100vh) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100px) scale(1.5);
        opacity: 0;
    }
}