:root {
    --neon-green: #00ff41;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --text-color: #e0e0e0;
}

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

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Glitch Effect */
.glitch-container {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.glitch {
    font-size: 2em;
    font-weight: bold;
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green);
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    animation: glitch-1 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: 2px 0 #00fff9;
    animation: glitch-2 2s infinite linear alternate-reverse;
}

@keyframes glitch-1 {
    0% { clip-path: inset(20% 0 30% 0); }
    20% { clip-path: inset(60% 0 10% 0); }
    40% { clip-path: inset(40% 0 50% 0); }
    60% { clip-path: inset(80% 0 5% 0); }
    80% { clip-path: inset(10% 0 70% 0); }
    100% { clip-path: inset(30% 0 20% 0); }
}

@keyframes glitch-2 {
    0% { clip-path: inset(15% 0 35% 0); }
    20% { clip-path: inset(55% 0 15% 0); }
    40% { clip-path: inset(45% 0 45% 0); }
    60% { clip-path: inset(75% 0 10% 0); }
    80% { clip-path: inset(15% 0 65% 0); }
    100% { clip-path: inset(25% 0 25% 0); }
}

/* Navigation */
header {
    padding: 20px;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 100;
}

nav {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: var(--neon-green);
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid var(--neon-green);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: var(--neon-green);
    color: var(--dark-bg);
    box-shadow: 0 0 20px var(--neon-green);
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(45deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
}

.hero-content h1 {
    font-size: 4em;
    color: var(--neon-green);
    text-shadow: 0 0 20px var(--neon-green);
    margin-bottom: 20px;
}

.subtitle {
    font-size: 1.5em;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.cta-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border: 2px solid var(--neon-green);
    border-radius: 8px;
    color: var(--neon-green);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--neon-green);
    color: var(--dark-bg);
    box-shadow: 0 0 30px var(--neon-green);
}

.chrome-icon,
.github-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Features Section */
#features {
    padding: 100px 20px;
    background-color: var(--darker-bg);
}

.section-title {
    text-align: center;
    color: var(--neon-green);
    font-size: 2.5em;
    margin-bottom: 50px;
    text-shadow: 0 0 10px var(--neon-green);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    padding: 30px;
    border: 1px solid var(--neon-green);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--neon-green);
}

.feature-icon {
    font-size: 2em;
    margin-bottom: 20px;
}

/* Installation Section */
#install {
    padding: 100px 20px;
}

.install-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.step {
    background: var(--darker-bg);
    border: 1px solid var(--neon-green);
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}

.step-number {
    width: 36px;
    height: 36px;
    background-color: transparent;
    border: 2px solid var(--neon-green);
    color: var(--neon-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.step:hover .step-number {
    background-color: var(--neon-green);
    color: var(--darker-bg);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.4);
}

.step p {
    font-size: 1.1em;
    line-height: 1.5;
    color: var(--text-color);
}

/* 添加图标支持 */
.step-icon {
    font-size: 2em;
    color: var(--neon-green);
    margin-bottom: 15px;
}

/* 移动端适配优化 */
@media (max-width: 768px) {
    .install-steps {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .step {
        padding: 25px;
    }

    .step p {
        font-size: 1em;
    }
}

/* Footer */
footer {
    padding: 40px 20px;
    background-color: var(--darker-bg);
    border-top: 1px solid var(--neon-green);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-link {
    color: var(--neon-green);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    text-shadow: 0 0 10px var(--neon-green);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3em;
    }

    .subtitle {
        font-size: 1.2em;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* 视差滚动相关样式 */
section {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* 确保每个部分有足够的间距 */
#features, #install {
    margin-top: 100px;
    padding: 100px 0;
    position: relative;
    background-color: var(--darker-bg);
}

/* 添加过渡效果 */
.hero-content,
.feature-card,
.step {
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    will-change: transform, opacity;
}

/* 入场动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.step {
    opacity: 0;
}

.feature-card.visible,
.step.visible {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* 确保内容不会重叠 */
.section-content {
    position: relative;
    z-index: 2;
    background-color: var(--darker-bg);
}

/* 添加层次感 */
.feature-card,
.step {
    position: relative;
    z-index: 2;
}

/* 优化滚动性能 */
* {
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Logo 样式 */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    filter: drop-shadow(0 0 8px #00ff41);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        filter: drop-shadow(0 0 8px #00ff41);
    }
    50% {
        filter: drop-shadow(0 0 12px #00ff41);
    }
    100% {
        filter: drop-shadow(0 0 8px #00ff41);
    }
} 

/* 添加移动端适配样式 */
@media (max-width: 768px) {
    /* Logo和标题 */
    .glitch-container {
        position: relative;
        top: 10px;
        left: 10px;
        margin-bottom: 20px;
    }
    .glitch {
        font-size: 1.5em;
    }
    /* 导航栏 */
    header {
        position: relative;
        padding: 10px;
        width: 100%;
        display: flex;
        justify-content: center;
        background-color: var(--darker-bg);
    }
    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .nav-link {
        padding: 6px 12px;
        font-size: 0.9em;
    }
    /* Hero区域 */
    #hero {
        min-height: 100vh;
        padding: 20px;
    }
    .hero-content h1 {
        font-size: 2.5em;
        margin-top: 40px;
    }
    .subtitle {
        font-size: 1em;
        padding: 0 20px;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .cta-button {
        width: 80%;
        justify-content: center;
        padding: 10px 20px;
    }
    /* Features区域 */
    #features {
        padding: 60px 20px;
    }
    .section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    .feature-card {
        padding: 20px;
    }
    /* Installation区域 */
    #install {
        padding: 60px 20px;
    }
    .install-steps {
        flex-direction: column;
        gap: 30px;
    }
    .step {
        min-width: unset;
        width: 100%;
        padding: 0 20px;
    }
    /* Footer */
    footer {
        padding: 30px 20px;
    }
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .social-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}
/* 添加小屏幕适配 */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2em;
    }
    .cta-button {
        width: 90%;
        font-size: 0.9em;
    }
    .feature-card {
        margin: 0 10px;
    }
    .section-title {
        font-size: 1.8em;
    }
}
/* 添加横屏模式适配 */
@media (max-height: 600px) and (orientation: landscape) {
    #hero {
        padding: 60px 20px;
    }
    .hero-content h1 {
        font-size: 2em;
        margin-bottom: 10px;
    }
    .subtitle {
        margin-bottom: 20px;
    }
    .cta-buttons {
        flex-direction: row;
    }
    .install-steps {
        flex-direction: row;
    }
}
/* 优化触摸交互 */
@media (hover: none) {
    .nav-link,
    .cta-button,
    .feature-card,
    .social-link {
        cursor: default;
    }
    .nav-link:active,
    .cta-button:active {
        background-color: var(--neon-green);
        color: var(--dark-bg);
        transform: scale(0.98);
    }
    .feature-card:active {
        transform: translateY(-2px);
    }
} 