@font-face {
    font-family: 'AuroraAWA';
    /* 自定义字体名称 */
    src: url('../font/Qilka-Bold.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'MouldyCheese';
    src: url('../font/MouldyCheeseRegular-WyMWG.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    padding: 0;
    margin: 0;
    font-family: 'AuroraAWA', 'MouldyCheese', sans-serif;
    font-weight: 300;
}

html {
    font-size: clamp(17px, 1.3vw, 27px);
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-size: cover;
    overflow: hidden;
    transition: background-image .7s ease-in-out;
}

.shell {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    background: rgba(99, 99, 99, 0.5);
    backdrop-filter: blur(8px);
}

.shell_body {
    width: 100%;
    padding: 250px 0 150px 0;

}

.shell_slider {
    position: relative;
    transition: transform 1s ease-in-out;
    background: transparent;
}

.item-wrapper {
    float: left;
    margin: 0 20px;
    opacity: 0;
    transform: translateY(40px);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.item-wrapper.float-in {
    animation: floatUp 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.item {
    transition: transform 0.3s ease;
    /* 不要写任何 transform 平移动画，避免覆盖 */
}

.item:hover {
    transform: scale(1.1);
}



.frame {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.frame:after {
    content: "";
    position: absolute;
    bottom: -16%;
    width: 100%;
    height: 60px;
    background: #ffffff1c;
    box-shadow: 0px 0px 15px 5px #ffffff1c;
    transform: rotateX(90deg) translate3d(0px, -20px, 0px);
}

.box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid #fff;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.box h1,
.box span {
    color: #fff;
    transform: translateZ(20px);
}

.box h1 {
    text-shadow: 0 0 30px #1f05b4;
    /* font-size: 60px; */
    font-size: 2.8rem;
    /* 可自动变大变小 */
}

.box span {
    position: absolute;
    bottom: 20px;
    padding: 0 25px;
    text-shadow: 0 0 10px #1f05b4;
    font-size: 0.6rem;
}

.front,
.left,
.right {
    box-shadow: 0 0 50px #ffffff;
    background-size: cover;
}

.right,
.left {
    top: 0;
    width: 60px;
    backface-visibility: hidden;
}

.left {
    left: 0;
    border-left-width: 5px;
    transform: translate3d(1px, 0, -60px) rotateY(-90deg);
    transform-origin: 0%;
}

.right {
    right: 0;
    border-right-width: 5px;
    transform: translate3d(-1px, 0, -60px) rotateY(90deg);
    transform-origin: 100%;
}

.glass-footer {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(50px);
    /* 初始状态：向下位移 */
    opacity: 0;
    /* 初始状态：透明 */
    transition:
        width 0.4s ease,
        padding 0.4s ease,
        background 0.3s ease,
        transform 0.6s ease,
        opacity 0.6s ease;
    /* 加入透明和浮动的过渡 */

    /* 以下为你原有样式 ↓ */
    background: rgba(255, 182, 193, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 10px 20px;
    color: white;
    font-family: sans-serif;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1226;
    overflow: hidden;
    width: 160px;
    white-space: nowrap;
}

/* ✅ 添加激活动画类 */
.glass-footer.footer-float-in {
    transform: translateX(-50%) translateY(0);
    /* 回到原位 */
    opacity: 1;
    /* 显现 */
}


.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.3s ease;
}

.footer-title {
    animation: fadeUp 0.6s ease-out forwards;
    opacity: 0;
}

.footer-detail {
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.4s ease 0.2s, height 0.3s ease 0.2s;
    transform: translateY(10px);
}

.glass-footer:hover,
.glass-footer.active {
    width: 360px;
    padding: 16px 32px;
    background: rgba(255, 182, 193, 0.2);
    transform: translateX(-50%) scale(1.02);
}

.glass-footer:hover .footer-detail,
.glass-footer.active .footer-detail {
    opacity: 1;
    height: auto;
    transform: translateY(0);
}


/* 入场淡入上移 */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-scramble__content {
    position: absolute;
    top: 100px;
    width: 100%;
    text-align: center;
    font-family: "AuroraAWA";
    font-size: clamp(1.2rem, 5vw, 2.8rem);
    font-weight: 600;
    color: #ffffff;
    z-index: 10;
    line-height: 1.5;
    pointer-events: none;
    text-shadow: -3px 0px 10px rgba(51, 0, 102, 0.5);
    padding: 0 20px;
    box-sizing: border-box;
    word-break: break-word;
}

.text-scramble__text {
    position: absolute;
    inset: 0;
}

.text-scramble__text span {
    word-break: break-word;
    white-space: normal;
    /* 允许换行 */
}

.text-scramble__text img {
    display: inline-block;
    height: 0.9em;
    width: auto;
}


#loading-screen {
    position: fixed;
    z-index: 20081226;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(50px);
    background-color: rgba(241, 170, 221, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;

    /* 💡 添加透明过渡 + 延迟 */
    transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1) 0.6s, background-color 1.4s cubic-bezier(0.4, 0, 0.2, 1) 0.6s;
    opacity: 1;
}

.loader-shell {
    display: grid;
    position: relative;
    animation: spin 5s linear infinite;
    transform-origin: center center;
    transition: transform 0.6s ease-in-out 0s;
    /* 💥 立即开始放大 */
    transform: scale(1);
    will-change: transform;
    grid-area: stack;
}

/* ✅ blob 叠加并模糊彩色动画 */
.loader-shell .blob {
    --border-radius: 115% 140% 145% 110% / 125% 140% 110% 125%;
    aspect-ratio: 1;
    height: 500px;
    display: block;
    grid-area: stack;
    border: 60px solid transparent;
    border-radius: var(--border-radius, 50%);
    mask-image: linear-gradient(transparent, transparent), linear-gradient(black, white);
    mask-clip: padding-box, border-box;
    mask-composite: intersect;
    mix-blend-mode: screen;
    filter: blur(100px);
}

.loader-shell .blob:nth-child(1) {
    background-image: linear-gradient(#07D, #3CC, #07D);
    rotate: 30deg;
    scale: 1.03;
}

.loader-shell .blob:nth-child(2) {
    background-image: linear-gradient(#F43, #F81, #F43);
    rotate: 60deg;
    scale: 0.95;
}

.loader-shell .blob:nth-child(3) {
    background-image: linear-gradient(#3A7, #1F7, #3A7);
    rotate: 90deg;
    scale: 0.97;
}

.loader-shell .blob:nth-child(4) {
    background-image: linear-gradient(#B1C, #814, #B1C);
    rotate: 120deg;
    scale: 1.02;
}

@keyframes spin {
    from {
        rotate: 0deg;
    }

    to {
        rotate: 360deg;
    }
}

#loading-screen.done {
    opacity: 0;
    /* 背景淡出 */
    background-color: transparent;
}

@keyframes spinAndExplode {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }

    100% {
        transform: rotate(360deg) scale(4);
        opacity: 0;
    }
}

#loading-screen.done .loader-shell {
    animation: spinAndExplode 1.5s forwards;
    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

#cursor {
    position: fixed;
    width: 16px;
    height: 16px;
    background: #b610b3;
    border-radius: 8px;
    opacity: 0.25;
    z-index: 1226;
    pointer-events: none;
    transition: 0.2s ease-in-out;
    transition-property: background, opacity, transform
}

#cursor.hidden {
    opacity: 0
}

#cursor.hover {
    opacity: 0.1;
    transform: scale(2.5)
}

#cursor.active {
    opacity: 0.5;
    transform: scale(0.5)
}

#clickME {
    cursor: pointer;
    display: inline-block;
    border: 1px solid #009688
}

/* 所有 ≤768px 的设备适配 */
@media (max-width: 768px) {

    html,
    body {
        height: 100vh;
        overflow: hidden;
        margin: 0;
        padding: 0;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center center;
        background-attachment: fixed;
        background-color: #fcd1d1;
    }

    .shell {
        background: rgba(99, 99, 99, 0.6);
        backdrop-filter: blur(6px);
    }

    .loader-shell .blob {
        height: 280px;
        border-width: 30px;
        filter: blur(50px);
    }

    #loading-screen.done .loader-shell {
        transform: scale(5);
    }

    .item.clicked-scale {
        transform: scale(1.1);
        transition: transform 0.4s ease;
        z-index: 1226;
    }
}

/* 所有 ≤480px 的小屏设备适配（手机） */
@media (max-width: 480px) {
    .text-scramble__text span {
        display: block;
    }

    .text-scramble__content {
        top: 70px;
        font-size: clamp(1.2rem, 7vw, 2.4rem);
        line-height: 1.2;
    }

    #scramble-text-1 {
        display: block;
        margin-bottom: 8px;
        font-size: clamp(3rem, 9vw, 4.8rem);
    }

    #scramble-text-2 {
        display: block;
        font-size: clamp(2.4rem, 7vw, 3.6rem);
    }

    .glass-footer {
        width: 140px;
        font-size: 12px;
        padding: 8px 16px;
        bottom: 20px;
    }

    .glass-footer:hover {
        width: 300px;
        padding: 12px 20px;
    }

    .footer-detail {
        text-align: center;
        line-height: 1.4;
    }
}