/* 全局样式 */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #ffffff;
    background-color: #0f0f0f;
    line-height: 1.6;
}

/* 头部样式 */
header {
    text-align: center;
    padding: 40px 20px;
    position: relative;
    background: radial-gradient(circle at center, rgba(0, 255, 255, 0.3), #141414 60%);
    box-shadow: inset 0 0 50px rgba(0, 255, 255, 0.2), 0 0 30px rgba(0, 255, 255, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.5);
    border-radius: 15px;
    overflow: hidden;
}

/* 动态光源伪元素 */
header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.6), rgba(0, 255, 255, 0) 70%);
    opacity: 0.5;
    animation: lightMove 5s infinite linear;
    z-index: 1;
}

/* 头部文字效果 */
header h1 {
    margin: 0;
    font-size: 4em;
    color: #00ffff;
    text-shadow: 0 0 15px #00ffff, 0 0 30px #00ffff, 0 0 50px #00ffff;
    position: relative;
    z-index: 2;
}

header p {
    font-size: 1.2em;
    margin-top: 10px;
    color: #00eaff;
    text-shadow: 0 0 10px #00ffff;
    z-index: 2;
    position: relative;
}

/* 导航栏 */
nav {
    margin-top: 20px;
    z-index: 2;
    position: relative;
}

nav a {
    text-decoration: none;
    color: #00ffff;
    font-weight: bold;
    font-size: 1.3em;
    margin: 0 15px;
    position: relative;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

nav a:hover {
    color: #ffffff;
    text-shadow: 0 0 15px #ffffff, 0 0 30px #ffffff;
}

nav a:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 2px;
    background: #00ffff;
    box-shadow: 0 0 15px #00ffff, 0 0 30px #00ffff;
}

/* 主体样式 */
main {
    padding: 5px;
}

section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 20px;
}

section p {
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 30px;
}

.cards {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.card {
    background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 20px rgba(0, 255, 255, 0.6);
}

.card h3 {
    font-size: 1.8em;
    color: #00ffff;
    margin-bottom: 10px;
    text-shadow: 0 0 10px #00ffff;
}

.card p {
    font-size: 1em;
    color: #cceeff;
}

/* 粒子背景 */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #000;
    pointer-events: none; /* 忽略鼠标事件 */
}

.glitch {
    position: relative;
    text-align: center;
    font-size: 2.5em;
    color: rgb(255, 255, 255);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: bold;
    animation: glitch 1s infinite;
    margin-bottom: 20px;
}

.glitch:before, .glitch:after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: rgba(255, 0, 0, 0.8);
    z-index: -1;
    clip: rect(10px, 9999px, 44px, 0);
    animation: glitchAnim 2s infinite linear alternate-reverse;
}

.glitch:after {
    left: 2px;
    clip: rect(30px, 9999px, 65px, 0);
    animation: glitchAnim 3s infinite linear alternate-reverse;
}

@keyframes glitch {
    0% {
        text-shadow: 2px 2px 0 #ff007f, -2px -2px 0 #00ffcc, 2px -2px 0 #00bfff;
    }
    50% {
        text-shadow: -2px -2px 0 #ff007f, 2px 2px 0 #00ffcc, -2px 2px 0 #00bfff;
    }
    100% {
        text-shadow: 2px 2px 0 #ff007f, -2px -2px 0 #00ffcc, 2px -2px 0 #00bfff;
    }
}

/* 光源动画 */
@keyframes lightMove {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
a{
    text-decoration: none; /* 去掉默认的下划线 */
}
