/* 基础重置与背景渐变 */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(to right, rgba(89, 114, 192, 0.8), rgba(89, 114, 192, 0.2));
    background-size: 400% 400%;
    animation: gradientBG 5s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 核心布局 */
.main {
    position: absolute;
    left: 0; right: 0; top: 0; bottom: 0;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.main_c {
    padding: 20px;
    box-sizing: border-box;
    max-width: 520px;
    transform: scale(0.90);
    border-radius: 20px;
    color: #fff;
    animation: gradientBG1 5s ease infinite;
}

@keyframes gradientBG1 {
    0% { background-color: rgba(96, 95, 95, 0.57); }
    50% { background-color: rgba(89, 114, 192, 0.72); }
    100% { background-color: rgba(96, 95, 95, 0.57); }
}

.main_d {
    padding: 0 17px;
}

/* 链接与按钮 */
.main_url {
    border-radius: 10px;
    background: #fff;
    flex: 1;
    height: 41px;
    line-height: 41px;
    text-align: center;
    color: #3d7bf6;
    font-weight: bold;
}

.main_but {
    margin-left: 20px;
    flex-shrink: 0;
    width: 88px;
    height: 41px;
    background: url("../img/but.png") no-repeat;
    background-size: 100% 100%;
    text-align: center;
    line-height: 41px;
    cursor: pointer;
}

/* 旋转与动画元素 */
@keyframes rotate {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.main_b {
    margin: 0 auto 10px;
    width: 420px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    animation: rotate 3s infinite;
}

#letter {
    width: 36px;
    color: #a9ff26;
    text-align: center;
    display: inline-block;
    height: fit-content;
    transition: transform 0.5s ease, width 0.5s ease;
}

#letter div {
    height: 35px;
}

/* 现代化轻提示框 (Toast) */
#myAlert {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px); 
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 99999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0.4s;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 显示状态 */
#myAlert.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0); /* 滑入原位 */
}

/* 游动小鱼容器 */
.container {
    margin: 0; padding: 0;
    background-color: transparent;
    width: 100%;
    height: 200px;
    z-index: -1;
    position: fixed;
    bottom: 0;
    left: 0;
}

/* 响应式 */
@media (max-width: 768px) {
    .main_b {
        width: 280px;
    }
}