:root {
    --bg-color-start: #000000;
    --bg-color-end: #1a202c;
    --text-color: #e2e8f0;
    --link-color: #63b3ed;
}

body {
    margin: 0;
    font-family: 'Noto Sans SC', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background: linear-gradient(-45deg, var(--bg-color-start), var(--bg-color-end));
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
    position: relative; /* 为粒子背景定位 */
}

/* 粒子动画画布样式 */
#tsparticles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* 置于内容之下 */
}

.container {
    text-align: center;
    padding: 2rem;
    z-index: 1; /* 确保内容在粒子之上 */
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
}

h1 {
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    margin-top: 1rem;
    opacity: 0.8;
}

.subtitle a {
    color: var(--link-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.subtitle a:hover {
    border-bottom-color: var(--link-color);
}


/* 文字入场动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
