* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: consolas;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background-color: #131417;
}

.container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.02);
}

.box {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 320px;
    min-width: 280px;
    height: 420px;
    justify-content: center;
    align-items: center;
    transition: 0.5s;
    flex: 1 1 300px;
    overflow: hidden;
    display: flex;
    z-index: 0; /* 确保父容器作为基准层 */
}

.content {
    position: relative;
    padding: 20px 30px;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    z-index: 1;
    transition: 0.5s;
    width: 100%;           /* 保持宽度撑满盒子 */
    margin: 0;             /* 取消左右各 10px 的边距，消除黑缝 */
    box-sizing: border-box; /* 防止 padding 把盒子撑爆 */
}

.content h2 {
    font-size: clamp(1.5em, 4vw, 2em);
    color: #fff;
    margin-bottom: 10px;
}

.content p {
    font-size: clamp(0.9em, 2.5vw, 1.1em);
    margin-bottom: 10px;
    line-height: 1.4em;
}

.content a {
    display: inline-block;
    font-size: clamp(0.9em, 2.5vw, 1.1em);
    color: #111;
    background: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 5px;
    transition: 0.6s;
    border: 1px solid rgba(255, 255, 255, 0.1); 
    box-shadow: 
        0 8px 32px rgba(255, 0, 88, 0.15),  /* 粉色泛光 */
        0 8px 32px rgba(0, 168, 255, 0.15); /* 蓝色泛光 */
}

.box:hover .content {
    left: -15px;
    padding: 40px 30px;
}

.content a:hover {
    background: #222;
    color: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 15px #222;
}

.box::before {
    content: "";
    position: absolute;
    background: #fff;
    top: 0;
    left: 0px;
    width: 100%;
    height: 100%;
    text-decoration: none;
    border-radius: 8px;
    transform: skewX(15deg);
    transition: 0.5s;
}

.box::after {
    content: "";
    position: absolute;
    background: #fff;
    top: 0;
    left: 50px;
    width: 50%;
    height: 100%;
    border-radius: 8px;
    transform: skewX(15deg);
    filter: blur(30px);
    transition: 0.5s;
}

.box:hover::before,
.box:hover::after {
    transform: skewX(0deg);
    left: 15px;
    width: calc(100% - 30px);
}

.box:nth-child(1)::before,
.box:nth-child(1)::after {
    background: linear-gradient(315deg, #ffbc00, #ff0058);
}

.box:nth-child(2)::before,
.box:nth-child(2)::after {
    background: linear-gradient(315deg, #03a9f4, #ff0058);
}

.box:nth-child(3)::before,
.box:nth-child(3)::after {
    background: linear-gradient(315deg, #4dff03, #00d0ff);
}

/*设置页脚样式*/
.footer {
    width: 100%;
    box-sizing: border-box;
}

/* 等待样式 */
#loader {
    border: 12px solid #a2c1f4;
    border-radius: 50%;
    border-top: 12px solid #6384ce;
    width: 70px;
    height: 70px;
    animation: spin 1s linear infinite;
}

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

.center {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

/* ===== 优化版开屏欢迎动画 ===== */
#welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #10002b 0%, #240046 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: all 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

#welcome-screen.fade-out {
    opacity: 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    filter: blur(10px);
    transform: scale(1.04);
    pointer-events: none;
}

.welcome-content {
    text-align: center;
    padding: 20px;
}

.welcome-logo {
    font-size: clamp(3rem, 12vw, 5rem);
    font-weight: 800;
    letter-spacing: 4px;
    background: linear-gradient(90deg, #4776e6, #8e54e9, #ffbc00, #4776e6);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 2.8s linear infinite;
    margin-bottom: 24px;
}

@keyframes gradientShift {
    0% { background-position: 0% center; }
    100% { background-position: 300% center; }
}

.welcome-subtitle {
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(1rem, 3vw, 1.25rem);
    letter-spacing: 1px;
    margin-bottom: 36px;
}

.loading-bar {
    width: 220px;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-progress {
    height: 100%;
    width: 0%;
    border-radius: 99px;
    background: linear-gradient(90deg, #4776e6, #8e54e9);
    transition: width 0.2s ease-out;
}

/* 扩散环形光效优化 */
.expanding-circle {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(142, 84, 233, 0.75) 0%,
        rgba(71, 118, 230, 0.35) 45%,
        rgba(71, 118, 230, 0) 70%
    );
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.expanding-circle.active {
    opacity: 1;
    width: 320vh;
    height: 320vh;
    filter: blur(35px);
}

/* 主页淡入 */
.main-content {
    opacity: 0;
    transition: opacity 1s ease 0.2s;
}
.main-content.show {
    opacity: 1;
}

/*其他私有ID或Class*/
form {
    display: flex;
    flex-direction: column;
}

.fly-fish {
    background-color: #f3f4f5;
    color: #f3fff3;
    font-family: Arial, sans-serif;
    font-size: clamp(14px, 3vw, 16px);
    animation: typing 10s infinite;
    background: linear-gradient(to right, #333, #555);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 100%;
}

#fps {
    position: fixed;
    top: 10px;
    right: 10px;
    color: white;
    background-color: #00ccff;
    padding: 8px 12px;
    border-radius: 3px;
    font-size: clamp(12px, 2vw, 14px);
}

.slide-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

iframe {
    position: absolute;
    left: -100%;
    top: 0;
    transition: left 1s ease-out;
    border: none;
}

.iframe-visible iframe {
    left: 0;
}

form * {
    color: #fff;
}

/* 登录状态样式 */
.login-status {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-btn,
.user-info {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: clamp(8px, 2vw, 10px) clamp(12px, 2.5vw, 15px);
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-size: clamp(12px, 2.5vw, 14px);
}

.login-btn:hover,
.user-info:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.user-avatar {
    width: clamp(25px, 6vw, 30px);
    height: clamp(25px, 6vw, 30px);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: clamp(12px, 3vw, 14px);
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 15px;
    cursor: pointer;
    font-size: clamp(10px, 2vw, 12px);
    margin-left: 8px;
    transition: background 0.3s;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 中等屏幕 */
@media (max-width: 900px) {
    .container {
        gap: 20px;
        padding: 30px 15px;
    }
    
    .box {
        flex: 1 1 45%;
        max-width: none;
        height: 380px;
    }
    
    .content {
        padding: 15px 20px;
    }
    
    .box:hover .content {
        left: -10px;
        padding: 25px 20px;
    }
}

/* 小屏幕 */
@media (max-width: 600px) {
    .container {
        flex-direction: column;
        gap: 15px;
        padding: 20px 10px;
    }
    
    .box {
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
        height: 350px;
    }
    
    .content {
        margin: 0 5px;
        padding: 15px;
    }
    
    .box:hover .content {
        left: 0;
        padding: 20px 15px;
    }
    
    .box:hover::before,
    .box:hover::after {
        left: 10px;
        width: calc(100% - 20px);
    }
}
