/* 全局样式 */
body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000; /* 固定背景颜色 */
    transition: background-color 0.5s ease-in-out; /* 背景颜色变化过渡效果 */
}

/* 容器样式 */
.container {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    display: none; /* 默认隐藏 */
}

.container .interact-button {
    text-decoration: none;
    font-size: 30px;
    line-height: 100px;
    background: linear-gradient(90deg, #03a9f4, #f441a5, #ffeb3b, #03a9f3);
    background-size: 400%;
    width: 400px;
    height: 100px;
    color: #ffffff;
    text-align: center;
    border-radius: 50px;
    z-index: 1;
    transition: transform 0.2s, background-color 0.2s; /* 过渡效果 */
    position: relative; /* 改为相对定位 */
}

.container .interact-button::before {
    content: "";
    position: absolute;
    left: -5px;
    right: -5px;
    top: -5px;
    bottom: -5px;
    background: linear-gradient(90deg, #03a9f4, #f441a5, #ffeb3b, #03a9f3);
    background-size: 400%;
    border-radius: 50px;
    filter: blur(20px);
    z-index: -1;
}

.container .interact-button:hover::before {
    animation: sun 8s infinite;
}

.container .interact-button:hover {
    animation: sun 8s infinite;
}

.container .interact-button:hover {
    transform: scale(1.05); /* 放大效果 */
}

/* 按钮按下效果 */
.container .interact-button:active {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* 改变阴影 */
}

/* 加载动画样式 */
.loader {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* 背景颜色 */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.loader div {
    width: 50px;
    height: 50px;
    border: 5px solid #7700ff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes sun {
    100% {
        background-position: -400% 0;
    }
}
