/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: white;
    overflow: hidden;
    height: 100vh;
}

/* 粒子背景 */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #00ff88;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    opacity: 0.7;
}

.particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { top: 80%; left: 20%; animation-delay: 1s; }
.particle:nth-child(3) { top: 40%; left: 30%; animation-delay: 2s; }
.particle:nth-child(4) { top: 60%; left: 40%; animation-delay: 3s; }
.particle:nth-child(5) { top: 30%; left: 50%; animation-delay: 4s; }
.particle:nth-child(6) { top: 70%; left: 60%; animation-delay: 5s; }
.particle:nth-child(7) { top: 50%; left: 70%; animation-delay: 0.5s; }
.particle:nth-child(8) { top: 90%; left: 80%; animation-delay: 1.5s; }
.particle:nth-child(9) { top: 10%; left: 90%; animation-delay: 2.5s; }
.particle:nth-child(10) { top: 25%; left: 85%; animation-delay: 3.5s; }

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) translateX(0px);
        opacity: 0.7;
    }
    25% { 
        transform: translateY(-20px) translateX(10px);
        opacity: 1;
    }
    50% { 
        transform: translateY(-40px) translateX(-5px);
        opacity: 0.5;
    }
    75% { 
        transform: translateY(-20px) translateX(-10px);
        opacity: 1;
    }
}

/* 主要内容区域 */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    z-index: 2;
    background: radial-gradient(ellipse at center, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, #00ff88, #00d4ff, #ff0080);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* 打字机效果 */
.typing-text {
    height: 60px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 500;
    color: #00ff88;
}

.typing-cursor {
    animation: blink 1s infinite;
    color: #00ff88;
    font-weight: 100;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 3rem;
    letter-spacing: 2px;
}

/* 技术图标 */
.tech-icons {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.tech-icon {
    font-size: 3rem;
    padding: 1rem;
    border: 2px solid #333;
    border-radius: 50%;
    background: rgba(0, 255, 136, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-icon::before {
    content: attr(data-tech);
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: #00ff88;
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
    opacity: 0;
}

.tech-icon:hover {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.2);
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.tech-icon:hover::before {
    top: -150%;
    opacity: 1;
}

/* 代码矩阵效果 */
.code-matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.1;
}

.matrix-column {
    position: absolute;
    top: -100%;
    width: 20px;
    height: 100%;
    color: #00ff88;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 20px;
    animation: matrix-fall 10s linear infinite;
}

.matrix-column:nth-child(1) { left: 10%; animation-delay: 0s; }
.matrix-column:nth-child(2) { left: 20%; animation-delay: 2s; }
.matrix-column:nth-child(3) { left: 30%; animation-delay: 4s; }
.matrix-column:nth-child(4) { left: 40%; animation-delay: 6s; }
.matrix-column:nth-child(5) { left: 50%; animation-delay: 8s; }
.matrix-column:nth-child(6) { left: 60%; animation-delay: 1s; }
.matrix-column:nth-child(7) { left: 70%; animation-delay: 3s; }
.matrix-column:nth-child(8) { left: 80%; animation-delay: 5s; }

@keyframes matrix-fall {
    0% { transform: translateY(-100vh); }
    100% { transform: translateY(100vh); }
}

/* 页脚 */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 1rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

.icp {
    font-size: 0.9rem;
    opacity: 0.7;
}

.icp a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.icp a:hover {
    color: #00ff88;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .tech-icons {
        gap: 1.5rem;
    }
    
    .tech-icon {
        font-size: 2rem;
        padding: 0.8rem;
    }
    
    .typing-text {
        font-size: 1.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .tech-icons {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .tech-icon {
        font-size: 1.5rem;
        padding: 0.6rem;
    }
}