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

body {
    font-family: 'Courier New', monospace;
    background: #0a0a0a;
    color: #fff;
    overflow: hidden;
    cursor: none;
}

/* 粒子背景画布 */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* 主容器 */
.container {
    position: relative;
    width: 100%;
    height: 100vh;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

/* 标题区域 */
.hero-section {
    margin-top: 15vh;
    text-align: center;
}

/* 故障效果文字 */
.glitch {
    font-size: 8rem;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    color: #fff;
    letter-spacing: 0.5rem;
    animation: glitch-skew 1s infinite;
    text-shadow: 
        0 0 10px #00ffff,
        0 0 20px #00ffff,
        0 0 40px #00ffff;
}

.glitch::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    left: 2px;
    text-shadow: -2px 0 #ff00de;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    left: -2px;
    text-shadow: -2px 0 #00fff9, 2px 2px #ff00de;
    animation: glitch-anim2 1s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(61px, 9999px, 88px, 0); }
    5% { clip: rect(33px, 9999px, 59px, 0); }
    10% { clip: rect(69px, 9999px, 28px, 0); }
    15% { clip: rect(95px, 9999px, 11px, 0); }
    20% { clip: rect(8px, 9999px, 76px, 0); }
    25% { clip: rect(41px, 9999px, 34px, 0); }
    30% { clip: rect(87px, 9999px, 92px, 0); }
    35% { clip: rect(15px, 9999px, 65px, 0); }
    40% { clip: rect(73px, 9999px, 43px, 0); }
    45% { clip: rect(29px, 9999px, 81px, 0); }
    50% { clip: rect(56px, 9999px, 19px, 0); }
    55% { clip: rect(94px, 9999px, 37px, 0); }
    60% { clip: rect(12px, 9999px, 68px, 0); }
    65% { clip: rect(47px, 9999px, 84px, 0); }
    70% { clip: rect(71px, 9999px, 22px, 0); }
    75% { clip: rect(35px, 9999px, 53px, 0); }
    80% { clip: rect(89px, 9999px, 14px, 0); }
    85% { clip: rect(26px, 9999px, 77px, 0); }
    90% { clip: rect(63px, 9999px, 45px, 0); }
    95% { clip: rect(51px, 9999px, 98px, 0); }
    100% { clip: rect(18px, 9999px, 31px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    5% { clip: rect(23px, 9999px, 44px, 0); }
    10% { clip: rect(82px, 9999px, 7px, 0); }
    15% { clip: rect(38px, 9999px, 91px, 0); }
    20% { clip: rect(70px, 9999px, 55px, 0); }
    25% { clip: rect(16px, 9999px, 79px, 0); }
    30% { clip: rect(93px, 9999px, 27px, 0); }
    35% { clip: rect(49px, 9999px, 62px, 0); }
    40% { clip: rect(5px, 9999px, 86px, 0); }
    45% { clip: rect(74px, 9999px, 20px, 0); }
    50% { clip: rect(31px, 9999px, 67px, 0); }
    55% { clip: rect(88px, 9999px, 42px, 0); }
    60% { clip: rect(13px, 9999px, 75px, 0); }
    65% { clip: rect(57px, 9999px, 96px, 0); }
    70% { clip: rect(21px, 9999px, 39px, 0); }
    75% { clip: rect(84px, 9999px, 53px, 0); }
    80% { clip: rect(46px, 9999px, 8px, 0); }
    85% { clip: rect(99px, 9999px, 71px, 0); }
    90% { clip: rect(34px, 9999px, 15px, 0); }
    95% { clip: rect(78px, 9999px, 60px, 0); }
    100% { clip: rect(25px, 9999px, 48px, 0); }
}

@keyframes glitch-skew {
    0% { transform: skew(0deg); }
    10% { transform: skew(2deg); }
    20% { transform: skew(-2deg); }
    30% { transform: skew(1deg); }
    40% { transform: skew(-1deg); }
    50% { transform: skew(0deg); }
    60% { transform: skew(-2deg); }
    70% { transform: skew(2deg); }
    80% { transform: skew(-1deg); }
    90% { transform: skew(1deg); }
    100% { transform: skew(0deg); }
}

/* 副标题 - 打字效果 */
.subtitle {
    font-size: 1.5rem;
    margin-top: 2rem;
    color: #00ffff;
    letter-spacing: 0.3rem;
}

.typing-text {
    display: inline-block;
}

.cursor {
    display: inline-block;
    animation: blink 0.7s infinite;
    color: #00ffff;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* 中心圆球 */
.center-orb {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 5vh 0;
}

.orb-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    animation: rotate 10s linear infinite;
}

.orb-ring::before,
.orb-ring::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 0, 222, 0.3);
    border-radius: 50%;
    animation: rotate 7s linear infinite reverse;
}

.orb-ring::after {
    animation: rotate 5s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.orb-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #00ffff, #ff00de);
    border-radius: 50%;
    box-shadow: 
        0 0 20px #00ffff,
        0 0 40px #00ffff,
        0 0 60px #ff00de,
        inset 0 0 20px rgba(255, 255, 255, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

.orb-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.4), transparent);
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

/* 导航项 */
.nav-items {
    display: flex;
    gap: 3rem;
    margin-bottom: 5vh;
}

.nav-item {
    position: relative;
    padding: 1rem 2rem;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    border: 2px solid rgba(0, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.nav-item span {
    position: relative;
    z-index: 2;
}

.nav-bg {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    transition: left 0.5s ease;
}

.nav-item:hover .nav-bg {
    left: 100%;
}

.nav-item:hover {
    border-color: #00ffff;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.5),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    transform: translateY(-5px);
}

/* 底部装饰 */
.footer-decoration {
    width: 100%;
    padding: 2rem;
    position: relative;
}

.scan-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    animation: scan 3s linear infinite;
    margin-bottom: 1rem;
}

@keyframes scan {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.tech-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: rgba(0, 255, 255, 0.7);
    letter-spacing: 0.1rem;
}

.code-snippet {
    font-style: italic;
}

.coordinates {
    font-family: 'Courier New', monospace;
}

/* 自定义光标 */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: #00ffff;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease;
    box-shadow: 0 0 10px #00ffff;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(0, 255, 255, 0.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.15s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        cursor: auto;
    }
    
    .cursor-dot,
    .cursor-outline {
        display: none;
    }
    
    .glitch {
        font-size: 4rem;
        letter-spacing: 0.3rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .nav-items {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-item {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .center-orb {
        width: 150px;
        height: 150px;
    }
}

