:root {
    --primary: #8a2be2;
    --secondary: #00ffff;
    --accent: #ff6ec7;
    --dark: #0a0a1f;
    --darker: #050510;
    --light: #f0f8ff;
    --transition: all 0.3s ease;
    --glow: 0 0 10px var(--secondary), 0 0 20px var(--secondary);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, var(--darker), var(--dark));
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 1rem 0;
    background: rgba(10, 10, 31, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(138, 43, 226, 0.3);
}
.navbar a {
    color: var(--light);
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    margin: 0 0.5rem;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    border-radius: 4px;
}
.navbar a:hover {
    color: var(--secondary);
    background: rgba(0, 255, 255, 0.1);
}
.navbar a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}
.navbar a:hover::after {
    width: 70%;
}
.dropdown {
    position: relative;
}
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(20, 20, 40, 0.95);
    min-width: 200px;
    border-radius: 4px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    z-index: 1;
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary);
}
.dropdown-content a {
    display: block;
    padding: 0.8rem 1rem;
    margin: 0;
    border-bottom: 1px solid rgba(138, 43, 226, 0.2);
}
.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.center {
    max-width: 1200px;
    margin: 80px auto 40px;
    padding: 0 20px;
}
.section {
    background: rgba(15, 15, 35, 0.7);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(138, 43, 226, 0.3);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.3);
}
h1, h2 {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    text-shadow: var(--glow);
    position: relative;
    display: inline-block;
}
h1::after, h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}
p {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}
a {
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--accent);
    text-shadow: var(--glow);
}
.cat-element {
    position: absolute;
    z-index: -1;
    opacity: 0.1;
    pointer-events: none;
}
.cat-paw {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    border-radius: 50%;
}
.cyberpunk-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
    margin: 2.5rem 0;
    position: relative;
}
.cyberpunk-divider::before,
.cyberpunk-divider::after {
    content: '';
    position: absolute;
    top: -5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--secondary);
    box-shadow: var(--glow);
}
.cyberpunk-divider::before {
    left: 0;
}
.cyberpunk-divider::after {
    right: 0;
}
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid rgba(138, 43, 226, 0.3);
}
img:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}
.shake {
    display: inline-block;
}
.shake:hover {
    animation: shake 0.5s;
}
@keyframes shake {
    0% { transform: translate(0, 0) rotate(0); }
    25% { transform: translate(-5px, 5px) rotate(-5deg); }
    50% { transform: translate(5px, -5px) rotate(5deg); }
    75% { transform: translate(-5px, 5px) rotate(-5deg); }
    100% { transform: translate(0, 0) rotate(0); }
}
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.project-card {
    background: rgba(25, 25, 45, 0.7);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid rgba(138, 43, 226, 0.3);
    transition: var(--transition);
}
.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--secondary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.project-card h3 {
    color: var(--accent);
    margin-bottom: 0.8rem;
}
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        padding: 0.5rem;
    }
    .navbar a {
        padding: 0.5rem;
        font-size: 0.9rem;
        margin: 0.2rem;
    }
    .section {
        padding: 1.5rem;
    }
    .project-grid {
        grid-template-columns: 1fr;
    }
    h1 {
        font-size: 1.8rem;
    }
    h2 {
        font-size: 1.5rem;
    }
}
footer {
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(138, 43, 226, 0.3);
}
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1rem 0;
}
.tech-stack img {
    width: 40px;
    height: 40px;
    transition: var(--transition);
}
.tech-stack img:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 5px var(--secondary));
}
.counter {
    font-weight: bold;
    color: var(--accent);
    font-size: 1.2rem;
}
.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}
.status-online {
    background-color: #00ff00;
    box-shadow: 0 0 8px #00ff00;
}
.status-offline {
    background-color: #ff0000;
    box-shadow: 0 0 8px #ff0000;
}
.important-note {
    background: rgba(255, 110, 199, 0.15);
    border-left: 4px solid var(--accent);
    padding: 1rem;
    border-radius: 4px;
    margin: 1.5rem 0;
}