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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    text-align: center;
    padding: 30px 0;
    background: linear-gradient(135deg, #4285F4, #4285F4);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-title {
    font-size: 36px;
    font-weight: 600;
}

.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.button-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}

.nav-link {
    text-decoration: none;
    color: inherit;
}

.nav-btn {
    position: relative; 
    overflow: visible;
    width: 180px;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #e0f2fe, #e0f2fe);
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.nav-btn:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.btn-text {
    font-size: 24px;
    font-weight: 500;
    color: white;
    text-align: center;
    margin-top: 10px;
}

.nav-btn-icon {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.left-text-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: fixed;
    left: 50px;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 70px;
    z-index: 1;
}

.right-text-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: fixed;
    right: -40px;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 70px;
    z-index: 1;
}

.text-item {
    color: #B22222;
    font-size: 30px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    opacity: 0;
    /*animation: horseRace 10s infinite, textGlow 2s ease-in-out infinite;*/
    animation: horseRace 10s infinite;
}

@keyframes horseRace {
    0%, 10% {
        opacity: 1;
        transform: translateY(0);
        filter: brightness(1.5) drop-shadow(0 0 8px rgba(255, 165, 0, 0.8));
    }
    40% {
        filter: brightness(2) drop-shadow(0 0 12px #4285F4);
    }
    40.1%, 100% {
        opacity: 0;
        transform: translateY(20px);
        filter: brightness(1);
    }
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 8px rgba(255, 165, 0, 0.5);
    }
    50% {
        text-shadow: 0 0 20px #4285F4, 0 0 30px #4285F4;
    }
}

.left-text-container .text-item:nth-child(1) { animation-delay: 0s, 0s; }
.left-text-container .text-item:nth-child(2) { animation-delay: 2s, 0s; }
.left-text-container .text-item:nth-child(3) { animation-delay: 4s, 0s; }
.left-text-container .text-item:nth-child(4) { animation-delay: 6s, 0s; }
.left-text-container .text-item:nth-child(5) { animation-delay: 8s, 0s; }

.right-text-container .text-item:nth-child(1) { animation-delay: 1s, 0s; }
.right-text-container .text-item:nth-child(2) { animation-delay: 3s, 0s; }
.right-text-container .text-item:nth-child(3) { animation-delay: 5s, 0s; }
.right-text-container .text-item:nth-child(4) { animation-delay: 7s, 0s; }
.right-text-container .text-item:nth-child(5) { animation-delay: 9s, 0s; }


.corner-label {
    position: absolute;
    top: -20px;  /* 扩大定位偏移 */
    right: -20px;
    background: hsl(250, 100%, 42%);
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 800;
    transform: rotate(15deg);
    animation: 
        neon-pulse 1.2s ease-in-out infinite,
        float 3s ease-in-out infinite;
    z-index: 3;
    border: 2px solid rgba(255,255,255,0.3);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

@keyframes neon-pulse {
    0%, 100% {
        box-shadow: 
            0 0 12px rgba(0, 180, 216, 0.4),
            0 0 24px rgba(0, 146, 202, 0.2),
            inset 0 0 8px rgba(255,255,255,0.2);
        background: hsl(249, 83%, 54%);
    }
    50% {
        box-shadow: 
            0 0 24px rgba(0, 212, 255, 0.8),
            0 0 48px rgba(0, 169, 206, 0.4),
            inset 0 0 12px rgba(255,255,255,0.3);
        background: #48cae4;
        transform: rotate(15deg) scale(1.15);
    }
}

@keyframes float {
    0%, 100% { transform: rotate(15deg) translateY(0); }
    50% { transform: rotate(15deg) translateY(-8px); }
}

/* 添加发光层 */
.corner-label::after {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 28px;
    background: rgba(0, 212, 255, 0.1);
    filter: blur(12px);
    z-index: -1;
    animation: glow-expand 2s ease-out infinite;
}

@keyframes glow-expand {
    0% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 0.6; }
    100% { opacity: 0; transform: scale(1.8); }
}


.corner-label2 {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #ee241d;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: bold;
    transform: rotate(15deg);
    box-shadow: 0 2px 10px rgba(255, 71, 87, 0.5);
    animation: pulse 2s ease-in-out infinite;
    z-index: 3;
}

@keyframes pulse {
    0% {
        transform: rotate(15deg) scale(1);
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.5);
    }
    50% {
        transform: rotate(15deg) scale(1.1);
        background: #ff6b81;
        box-shadow: 0 0 20px 5px rgba(255, 71, 87, 0.8);
    }
    100% {
        transform: rotate(15deg) scale(1);
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.5);
    }
}