:root {
    --bg-gradient: radial-gradient(circle at center, #ffffff 0%, #f3f4f6 100%);
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --link-bg: #ffffff;
    --link-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --link-hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-gradient: radial-gradient(circle at center, #1f2937 0%, #111827 100%);
        --text-primary: #f9fafb;
        --text-secondary: #9ca3af;
        --link-bg: rgba(31, 41, 55, 0.8);
        --link-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
        --link-hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    }
    a:hover {
        background: rgba(55, 65, 81, 0.9);
    }
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-gradient);
    color: var(--text-primary);
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    display: block; /* 确保表现为块级元素 */
}

.container {
    text-align: center;
    padding: 2rem;
    animation: fadeIn 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

h1 {
    font-size: 3.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 1rem 0;
    color: var(--text-primary);
}

.slogan {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin: 0 0 3rem 0;
    opacity: 0;
    animation: fadeIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 2rem;
    background: transparent;
    border: none;
    border-radius: 9999px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
}

a:hover {
    background: var(--link-bg);
    transform: translateY(-2px);
    box-shadow: var(--link-hover-shadow);
}

/* Emoji animation on hover */
a:hover .emoji {
    animation: wave 0.6s ease-in-out infinite;
    display: inline-block;
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
    100% { transform: rotate(0deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 打字机光标效果 */
.typing-cursor::after {
    content: '|';
    display: inline-block;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
    color: var(--text-secondary);
    font-weight: 300;
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

/* Glitch 故障效果 */
.glitch-effect {
    position: relative;
}

.glitch-effect:hover {
    text-shadow: 2px 0 rgba(255,0,0,0.5), -2px 0 rgba(0,0,255,0.5);
    animation: glitch-skew 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
    color: var(--text-primary);
}

@keyframes glitch-skew {
    0% { transform: translate(0) }
    20% { transform: translate(-2px, 2px) }
    40% { transform: translate(-2px, -2px) }
    60% { transform: translate(2px, 2px) }
    80% { transform: translate(2px, -2px) }
    100% { transform: translate(0) }
}

@media (max-width: 600px) {
    h1 { font-size: 2.5rem; }
    .slogan { font-size: 1rem; }
    ul { flex-direction: column; gap: 1rem; width: 100%; max-width: 280px; margin: 0 auto; }
    a { justify-content: center; width: 100%; box-sizing: border-box; }
}