/* 全局重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', Courier, monospace;
    background-color: #0a0a0a;
    color: #00ff00;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

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

/* 标题故障艺术效果 */
.header {
    text-align: center;
    padding: 50px 0;
    margin-bottom: 40px;
}

.glitch-wrapper {
    padding: 20px;
    position: relative;
}

.glitch {
    font-size: 5rem;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff,
                 0.025em 0.04em 0 #fffc00;
    animation: glitch 725ms infinite;
}

.glitch span {
    position: absolute;
    top: 0;
    left: 0;
}

@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff,
                     0.025em 0.04em 0 #fffc00;
    }
    15% {
        text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff,
                     0.025em 0.04em 0 #fffc00;
    }
    16% {
        text-shadow: -0.05em -0.025em 0 #00fffc, 0.025em 0.035em 0 #fc00ff,
                     -0.05em -0.05em 0 #fffc00;
    }
    49% {
        text-shadow: -0.05em -0.025em 0 #00fffc, 0.025em 0.035em 0 #fc00ff,
                     -0.05em -0.05em 0 #fffc00;
    }
    50% {
        text-shadow: 0.05em 0.035em 0 #00fffc, 0.03em 0 0 #fc00ff,
                     0 -0.04em 0 #fffc00;
    }
    99% {
        text-shadow: 0.05em 0.035em 0 #00fffc, 0.03em 0 0 #fc00ff,
                     0 -0.04em 0 #fffc00;
    }
    100% {
        text-shadow: -0.05em 0 0 #00fffc, -0.025em -0.04em 0 #fc00ff,
                     -0.04em -0.025em 0 #fffc00;
    }
}

.header-subtitle {
    font-size: 2rem;
    margin: 20px 0;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
}

.header-description {
    font-size: 1.2rem;
    color: #888;
}

/* 计时器样式 */
.counter-section {
    background: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    border: 1px solid #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
}

.counter {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.counter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.counter-item span {
    font-size: 2.5rem;
    font-weight: bold;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
}

.counter-item .label {
    font-size: 1rem;
    color: #888;
}

.counter-description {
    text-align: center;
    color: #888;
}

/* 时间线样式 */
.timeline-section {
    margin: 60px 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
}

.timeline-container {
    position: relative;
    padding: 20px 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
    width: 50%;
    padding: 20px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 40px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 40px;
}

.timeline-content {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.1);
}

.timeline-date {
    font-size: 1.2rem;
    color: #00ff00;
    margin-bottom: 10px;
}

.timeline-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #fff;
}

.timeline-description {
    color: #888;
}

/* Matrix 雨效果容器 */
.matrix-rain-container {
    position: relative;
    width: 100%;
    height: 400px;
    margin: 40px 0;
    overflow: hidden;
}

#matrix-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.intro-content {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.8);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
}

.intro-content p {
    margin-bottom: 20px;
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
}

/* 底部样式 */
.footer {
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
    border-top: 1px solid #00ff00;
}

.footer-content {
    color: #888;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .glitch {
        font-size: 3rem;
    }

    .counter {
        flex-wrap: wrap;
    }

    .timeline-container::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 40px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd) {
        padding-right: 20px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #00ff00;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00cc00;
}