/* FANTASYLAND导航链接的音乐元素效果 */
.GlobalMenu__link.-fantasyland {
    position: relative;
    overflow: visible; /* 改为visible以便光盘可以超出容器 */
    transition: all 0.4s ease;
    border-radius: 4px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
 
}

/* 添加音乐波纹背景效果 */
.GlobalMenu__link.-fantasyland::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.8;
    transition: all 0.5s ease;
    z-index: 1;
    animation: musicWave 2s infinite ease-out;
}

/* 添加浮动光盘元素 - 左上 */
.GlobalMenu__link.-fantasyland .inner::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -15px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(
            circle,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(255, 255, 255, 0.7) 20%,
            rgba(255, 255, 255, 0.4) 40%,
            rgba(255, 255, 255, 0.2) 60%,
            rgba(255, 255, 255, 0.1) 80%,
            transparent 100%
    );
    z-index: 3;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5), inset 0 0 4px rgba(255, 255, 255, 0.8);
    animation: floatingDisc1 5s linear infinite;
}

/* 添加浮动光盘元素 - 右上 */
.GlobalMenu__link.-fantasyland .inner::after {
    content: '';
    position: absolute;
    top: -8px;
    right: -12px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(
            circle,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(255, 255, 255, 0.7) 20%,
            rgba(255, 255, 255, 0.4) 40%,
            rgba(255, 255, 255, 0.2) 60%,
            rgba(255, 255, 255, 0.1) 80%,
            transparent 100%
    );
    z-index: 3;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5), inset 0 0 4px rgba(255, 255, 255, 0.8);
    animation: floatingDisc2 6s linear infinite reverse;
}

.GlobalMenu__link.-fantasyland:hover::before {
    width: 150px;
    height: 150px;
    opacity: 0.8;
    animation: musicWave 2s infinite ease-out;
}

@keyframes musicWave {
    0% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(0.3);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 浮动光盘动画 */
@keyframes floatingDisc1 {
    0% {
        transform: rotate(0deg) translateX(0) translateY(0);
    }
    25% {
        transform: rotate(90deg) translateX(5px) translateY(-3px);
    }
    50% {
        transform: rotate(180deg) translateX(0) translateY(-5px);
    }
    75% {
        transform: rotate(270deg) translateX(-5px) translateY(-3px);
    }
    100% {
        transform: rotate(360deg) translateX(0) translateY(0);
    }
}

@keyframes floatingDisc2 {
    0% {
        transform: rotate(0deg) translateX(0) translateY(0);
    }
    25% {
        transform: rotate(90deg) translateX(-5px) translateY(-3px);
    }
    50% {
        transform: rotate(180deg) translateX(0) translateY(-5px);
    }
    75% {
        transform: rotate(270deg) translateX(5px) translateY(-3px);
    }
    100% {
        transform: rotate(360deg) translateX(0) translateY(0);
    }
}

@keyframes floatingDisc3 {
    0% {
        transform: rotate(0deg) translateX(0) translateY(0);
    }
    25% {
        transform: rotate(90deg) translateX(4px) translateY(3px);
    }
    50% {
        transform: rotate(180deg) translateX(0) translateY(5px);
    }
    75% {
        transform: rotate(270deg) translateX(-4px) translateY(3px);
    }
    100% {
        transform: rotate(360deg) translateX(0) translateY(0);
    }
}

/* 音符图标样式 - 光盘特效 */
.GlobalMenu__link.-fantasyland .music-icon {
    position: absolute;
    top: 0;
    right: 5px;
    font-size: 14px;
    color: rgba(255, 255, 255, 1);
    opacity: 1;
    transform: rotate(15deg) scale(1.2);
    transition: all 0.4s ease;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 15px rgba(255, 255, 255, 0.5);
    z-index: 3;
    animation: musicIconFloat 3s ease-in-out infinite;
    animation-play-state: running;
    /* 光盘特效 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 添加光盘效果 */
.GlobalMenu__link.-fantasyland .music-icon::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(
            circle,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(255, 255, 255, 0.7) 20%,
            rgba(255, 255, 255, 0.4) 40%,
            rgba(255, 255, 255, 0.2) 60%,
            rgba(255, 255, 255, 0.1) 80%,
            transparent 100%
    );
    z-index: -1;
    animation: cdSpin 3s linear infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5), inset 0 0 5px rgba(255, 255, 255, 0.8);
}

/* 光盘中心孔 */
.GlobalMenu__link.-fantasyland .music-icon::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
}

/* 光盘旋转动画 */
@keyframes cdSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 点击时的快速旋转动画 */
@keyframes cdSpinFast {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.3);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* 点击时添加的特效类 */
.GlobalMenu__link.-fantasyland .music-icon.cd-spin-effect::before {
    animation: cdSpinFast 1s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards;
    width: 30px;
    height: 30px;
    box-shadow: 0 0 25px rgba(255, 255, 255, 1), inset 0 0 15px rgba(255, 255, 255, 1);
    background: radial-gradient(
            circle,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 0.9) 20%,
            rgba(255, 255, 255, 0.8) 40%,
            rgba(255, 255, 255, 0.6) 60%,
            rgba(255, 255, 255, 0.4) 80%,
            transparent 100%
    );
}

.GlobalMenu__link.-fantasyland .music-icon.cd-spin-effect::after {
    width: 8px;
    height: 8px;
    background: rgba(0, 0, 0, 1);
    box-shadow: 0 0 5px rgba(255, 255, 255, 1);
}

.GlobalMenu__link.-fantasyland .music-icon.cd-spin-effect {
    transform: rotate(15deg) scale(1.3);
    text-shadow: 0 0 15px rgba(255, 255, 255, 1), 0 0 25px rgba(255, 255, 255, 0.8);
}

/* 添加额外的音符装饰 */
.GlobalMenu__link.-fantasyland::after {
    content: '♫';
    position: absolute;
    bottom: -5px;
    left: 5px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transform: rotate(-15deg) translateY(5px) scale(1);
    transition: all 0.5s ease;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    z-index: 2;
    animation: smallNoteFloat 4s ease-in-out infinite;
}

/* 添加浮动光盘元素 - 左下 */
.GlobalMenu__link.-fantasyland .inner span.floating-disc-left {
    content: '';
    position: absolute;
    bottom: -8px;
    left: -10px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(
            circle,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(255, 255, 255, 0.7) 20%,
            rgba(255, 255, 255, 0.4) 40%,
            rgba(255, 255, 255, 0.2) 60%,
            rgba(255, 255, 255, 0.1) 80%,
            transparent 100%
    );
    z-index: 3;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5), inset 0 0 4px rgba(255, 255, 255, 0.8);
    animation: floatingDisc3 7s linear infinite;
    pointer-events: none;
}

/* 添加浮动光盘元素 - 右下 */
.GlobalMenu__link.-fantasyland .inner span.floating-disc-right {
    content: '';
    position: absolute;
    bottom: -6px;
    right: -8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(
            circle,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(255, 255, 255, 0.7) 20%,
            rgba(255, 255, 255, 0.4) 40%,
            rgba(255, 255, 255, 0.2) 60%,
            rgba(255, 255, 255, 0.1) 80%,
            transparent 100%
    );
    z-index: 3;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5), inset 0 0 4px rgba(255, 255, 255, 0.8);
    animation: floatingDisc1 8s linear infinite reverse;
    pointer-events: none;
}

.GlobalMenu__link.-fantasyland:hover::after {
    opacity: 1;
    transform: rotate(-15deg) translateY(5px) scale(1);
    animation: smallNoteFloat 4s ease-in-out infinite;
}

@keyframes smallNoteFloat {
    0% {
        transform: rotate(-15deg) translateY(0) scale(0.6);
    }
    50% {
        transform: rotate(-30deg) translateY(5px) scale(0.8);
    }
    100% {
        transform: rotate(-15deg) translateY(0) scale(0.6);
    }
}

.GlobalMenu__link.-fantasyland:hover .music-icon {
    opacity: 1;
    right: 5px;
    transform: rotate(15deg) scale(1.2);
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 15px rgba(255, 255, 255, 0.5);
    animation-play-state: running;
}

/* 悬停时光盘效果增强 */
.GlobalMenu__link.-fantasyland:hover .music-icon::before {
    width: 24px;
    height: 24px;
    animation: cdSpin 1.5s linear infinite;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.7), inset 0 0 8px rgba(255, 255, 255, 1);
    background: radial-gradient(
            circle,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 0.8) 20%,
            rgba(255, 255, 255, 0.5) 40%,
            rgba(255, 255, 255, 0.3) 60%,
            rgba(255, 255, 255, 0.2) 80%,
            transparent 100%
    );
}

/* 悬停时光盘中心孔效果增强 */
.GlobalMenu__link.-fantasyland:hover .music-icon::after {
    width: 6px;
    height: 6px;
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 3px rgba(255, 255, 255, 1);
}

@keyframes musicIconFloat {
    0% {
        transform: rotate(0deg) translateY(0) scale(0.8);
    }
    50% {
        transform: rotate(15deg) translateY(-5px) scale(1);
    }
    100% {
        transform: rotate(0deg) translateY(0) scale(0.8);
    }
}

.GlobalMenu__link.-fantasyland .inner {
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.4);
    display: inline-block;
    background: linear-gradient(90deg, #fff, #f0f0f0, #fff);
    background-size: 200% auto;
    background-clip: text;
    letter-spacing: 1px;
    color: #fff;
    transform: scale(1.05);
    animation: textPulse 1.5s infinite alternate;
}

/* 添加文本闪光效果 */
.GlobalMenu__link.-fantasyland:hover .inner {
    letter-spacing: 1px;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.4);
    animation: textPulse 1.5s infinite alternate;
}

@keyframes textPulse {
    0% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.4);
    }
    100% {
        text-shadow: 0 0 15px rgba(255, 255, 255, 1), 0 0 30px rgba(255, 255, 255, 0.6), 0 0 40px rgba(255, 255, 255, 0.3);
    }
}

/* 添加第二个音符 */
.GlobalMenu__link.-fantasyland .inner::before,
.GlobalMenu__link.-fantasyland .inner::after {
    content: '♫';
    position: absolute;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
    opacity: 1;
    transition: all 0.5s ease;
    z-index: 1;
}

.GlobalMenu__link.-fantasyland .inner::before {
    top: -10px;
    right: -10px;
    animation: fantasyNote2 2s ease-in-out infinite 0.5s;
}

.GlobalMenu__link.-fantasyland .inner::after {
    bottom: -10px;
    left: -10px;
    animation: fantasyNote3 2s ease-in-out infinite 0.8s;
}

/* 悬停效果 */
.GlobalMenu__link.-fantasyland:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.GlobalMenu__link.-fantasyland:hover .inner {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
    letter-spacing: 1px;
    animation-play-state: paused;
}

/* 悬停时浮动光盘效果增强 */
.GlobalMenu__link.-fantasyland:hover .inner::before,
.GlobalMenu__link.-fantasyland:hover .inner::after {
    width: 20px;
    height: 20px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.7), inset 0 0 8px rgba(255, 255, 255, 1);
    animation-duration: 3s;
    background: radial-gradient(
            circle,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 0.8) 20%,
            rgba(255, 255, 255, 0.5) 40%,
            rgba(255, 255, 255, 0.3) 60%,
            rgba(255, 255, 255, 0.2) 80%,
            transparent 100%
    );
}

.GlobalMenu__link.-fantasyland:hover .inner span.floating-disc-left,
.GlobalMenu__link.-fantasyland:hover .inner span.floating-disc-right {
    width: 16px;
    height: 16px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.7), inset 0 0 8px rgba(255, 255, 255, 1);
    animation-duration: 4s;
    background: radial-gradient(
            circle,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 0.8) 20%,
            rgba(255, 255, 255, 0.5) 40%,
            rgba(255, 255, 255, 0.3) 60%,
            rgba(255, 255, 255, 0.2) 80%,
            transparent 100%
    );
}

/* 悬停时显示音符和音波 */
.GlobalMenu__link.-fantasyland:hover::before {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
    opacity: 1;
    animation: fantasyNote1 2s ease-in-out infinite;
}

.GlobalMenu__link.-fantasyland:hover::after {
    opacity: 1;
    animation: fantasyWave 2s ease-in-out infinite;
}

.GlobalMenu__link.-fantasyland:hover .inner::before,
.GlobalMenu__link.-fantasyland:hover .inner::after {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
    opacity: 1;
}

.GlobalMenu__link.-fantasyland:hover .inner::before {
    animation: fantasyNote2 2s ease-in-out infinite 0.5s;
}

.GlobalMenu__link.-fantasyland:hover .inner::after {
    animation: fantasyNote3 2s ease-in-out infinite 0.8s;
}

/* 点击效果 */
.GlobalMenu__link.-fantasyland:active {
    transform: translateY(0);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
    transition: all 0.1s ease;
}

.GlobalMenu__link.-fantasyland:active .inner {
    transform: scale(0.98);
}

/* 点击时光盘效果 */
.GlobalMenu__link.-fantasyland:active .music-icon::before {
    width: 28px;
    height: 28px;
    animation: cdSpin 0.8s linear infinite;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.9), inset 0 0 10px rgba(255, 255, 255, 1);
    background: radial-gradient(
            circle,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 0.9) 20%,
            rgba(255, 255, 255, 0.7) 40%,
            rgba(255, 255, 255, 0.5) 60%,
            rgba(255, 255, 255, 0.3) 80%,
            transparent 100%
    );
    transition: all 0.1s ease;
}

/* 点击时光盘中心孔效果 */
.GlobalMenu__link.-fantasyland:active .music-icon::after {
    width: 7px;
    height: 7px;
    background: rgba(0, 0, 0, 1);
    box-shadow: 0 0 4px rgba(255, 255, 255, 1);
    transition: all 0.1s ease;
}

/* 点击时浮动光盘效果 */
.GlobalMenu__link.-fantasyland:active .inner::before,
.GlobalMenu__link.-fantasyland:active .inner::after,
.GlobalMenu__link.-fantasyland:active .inner span.floating-disc-left,
.GlobalMenu__link.-fantasyland:active .inner span.floating-disc-right {
    width: 22px;
    height: 22px;
    animation-duration: 1s;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.9), inset 0 0 10px rgba(255, 255, 255, 1);
    background: radial-gradient(
            circle,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 0.9) 20%,
            rgba(255, 255, 255, 0.7) 40%,
            rgba(255, 255, 255, 0.5) 60%,
            rgba(255, 255, 255, 0.3) 80%,
            transparent 100%
    );
    transition: all 0.1s ease;
}

/* 点击时添加的特效类 */
.GlobalMenu__link.-fantasyland .inner.discs-spin-effect::before,
.GlobalMenu__link.-fantasyland .inner.discs-spin-effect::after,
.GlobalMenu__link.-fantasyland .inner.discs-spin-effect span.floating-disc-left,
.GlobalMenu__link.-fantasyland .inner.discs-spin-effect span.floating-disc-right {
    width: 25px;
    height: 25px;
    animation: cdSpinFast 1.2s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards;
    box-shadow: 0 0 25px rgba(255, 255, 255, 1), inset 0 0 15px rgba(255, 255, 255, 1);
    background: radial-gradient(
            circle,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 0.9) 20%,
            rgba(255, 255, 255, 0.8) 40%,
            rgba(255, 255, 255, 0.6) 60%,
            rgba(255, 255, 255, 0.4) 80%,
            transparent 100%
    );
}

.GlobalMenu__link.-fantasyland .inner.discs-spin-effect {
    text-shadow: 0 0 15px rgba(255, 255, 255, 1), 0 0 25px rgba(255, 255, 255, 0.8);
}

/* 音符动画 */
@keyframes fantasyNote1 {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.8) rotate(0deg);
    }
    30% {
        opacity: 1;
        transform: translate(10px, -10px) scale(1) rotate(20deg);
    }
    60% {
        opacity: 0;
        transform: translate(20px, -20px) scale(0.8) rotate(40deg);
    }
    100% {
        opacity: 0;
        transform: translate(0, 0) scale(0.8) rotate(0deg);
    }
}

@keyframes fantasyNote2 {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.8) rotate(0deg);
    }
    30% {
        opacity: 1;
        transform: translate(-10px, 10px) scale(1) rotate(-20deg);
    }
    60% {
        opacity: 0;
        transform: translate(-20px, 20px) scale(0.8) rotate(-40deg);
    }
    100% {
        opacity: 0;
        transform: translate(0, 0) scale(0.8) rotate(0deg);
    }
}

@keyframes fantasyNote3 {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.8) rotate(0deg);
    }
    30% {
        opacity: 1;
        transform: translate(10px, 10px) scale(1) rotate(20deg);
    }
    60% {
        opacity: 0;
        transform: translate(20px, 20px) scale(0.8) rotate(40deg);
    }
    100% {
        opacity: 0;
        transform: translate(0, 0) scale(0.8) rotate(0deg);
    }
}

@keyframes fantasyWave {
    0% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
}

/* 音符飘散动画的CSS样式 */
.fantasy-music-note {
    position: fixed;
    font-size: 24px;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 15px rgba(255, 255, 255, 0.5);
    pointer-events: none;
    z-index: 9999;
    opacity: 1;
    transition: all 0.5s ease;
}

@keyframes flyNote {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        /* 注意：这里不使用CSS变量，因为transform已经在JavaScript中设置 */
        transform: translate(100px, -100px) scale(0) rotate(360deg);
    }
}