/* Website 158 - 故障艺术风格 (Glitch Art)
 * 布局：故障艺术效果，赛博朋克风格
 * 主题色：红色 (#dc2626) + 深红 (#991b1b)
 */

:root {
    --primary-color: #dc2626;
    --primary-dark: #991b1b;
    --primary-light: #f87171;
    --accent-color: #7f1d1d;
    --accent-light: #ef4444;
    --bg-dark: #0f0505;
    --bg-card: #1a0a0a;
    --text-primary: #fef2f2;
    --text-secondary: #fecaca;
    --border-color: #b91c1c;
    --shadow-color: rgba(220, 38, 38, 0.5);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1f0a0a 50%, var(--bg-dark) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.glitch-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    padding: 0 40px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-color);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 2px 2px 0 var(--primary-color), -2px -2px 0 #00ffff;
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 90%, 100% { text-shadow: 2px 2px 0 var(--primary-color), -2px -2px 0 #00ffff; }
    92% { text-shadow: -2px 2px 0 var(--primary-color), 2px -2px 0 #00ffff; }
    94% { text-shadow: 2px -2px 0 var(--primary-color), -2px 2px 0 #00ffff; }
    96% { text-shadow: 0 0 5px var(--primary-color); }
}

.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-light);
    background: var(--bg-card);
    border: 1px solid var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary-light);
    box-shadow: 0 0 10px var(--primary-color);
    transition: all 0.3s ease;
}

.main-content {
    padding-top: 70px;
}

.glitch-hero {
    padding: 80px 40px;
    text-align: center;
    position: relative;
}

.glitch-hero::before {
    content: 'ERROR';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 200px;
    font-weight: 900;
    color: rgba(220, 38, 38, 0.1);
    z-index: 0;
    animation: glitchText 2s infinite;
}

@keyframes glitchText {
    0%, 90% { opacity: 0.1; }
    91% { opacity: 0.2; transform: translate(-52%, -50%); }
    92% { opacity: 0.1; transform: translate(-48%, -50%); }
    93% { opacity: 0.1; }
}

.glitch-hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.glitch-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--primary-light);
    text-shadow: 3px 3px 0 var(--primary-dark), -1px 1px 0 #00ffff;
    animation: glitchText 2s infinite;
}

.glitch-hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.glitch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding: 40px;
    max-width: 1600px;
    margin: 0 auto;
}

.glitch-card {
    background: var(--bg-card);
    border-radius: 4px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
}

.glitch-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.glitch-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-light);
    box-shadow: 0 0 30px var(--shadow-color);
}

.glitch-card .card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
    box-shadow: 3px 3px 0 var(--primary-dark);
}

.glitch-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--primary-light);
}

.glitch-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.glitch-card .card-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.glitch-section {
    padding: 80px 40px;
    background: rgba(220, 38, 38, 0.1);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--primary-light);
    text-shadow: 2px 2px 0 var(--primary-dark);
}

.glitch-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.glitch-item {
    background: var(--bg-card);
    border-radius: 4px;
    padding: 35px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.glitch-item:hover {
    border-color: var(--primary-light);
    box-shadow: 0 0 20px var(--shadow-color);
}

.glitch-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 3px 3px 0 var(--primary-dark);
}

.glitch-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-light);
}

.glitch-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.glitch-contact {
    padding: 80px 40px;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-dark) 100%);
}

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

.glitch-contact-card {
    background: var(--bg-card);
    padding: 35px;
    border-radius: 4px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.glitch-contact-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 0 20px var(--shadow-color);
}

.glitch-contact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 3px 3px 0 var(--primary-dark);
}

.glitch-contact-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-light);
}

.glitch-contact-card p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.glitch-footer {
    background: var(--bg-dark);
    padding: 40px;
    text-align: center;
    border-top: 2px solid var(--border-color);
}

.glitch-footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-shadow: 0 0 10px var(--primary-color);
}

@media (max-width: 768px) {
    .glitch-nav {
        padding: 0 20px;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(15, 5, 5, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        transform: translateY(-150%);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .menu-toggle {
        display: flex;
    }

    .glitch-hero {
        padding: 60px 20px;
    }

    .glitch-hero h1 {
        font-size: 2rem;
    }

    .glitch-grid {
        padding: 20px;
        grid-template-columns: 1fr;
    }

    .glitch-section,
    .glitch-contact {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 1.8rem;
    }
}
