:root {
    --primary: #ff00cc;
    --secondary: #3333ff;
    --dark: #121212;
    --dark-light: #1e1e1e;
    --text: #e0e0e0;
    --glow: rgba(255, 0, 204, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 1rem 0;
    margin-bottom: 40px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    overflow: hidden;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

h1 {
    font-size: 3.5rem;
}

.subtitle {
    font-size: 1rem;
    color: #ffffff;
    opacity: 0.8;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 320px);
    justify-content: center; /* 居中排列 */
    gap: 30px;
    margin-top: 20px;
}

.portfolio-card {
    background: var(--dark-light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.portfolio-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    padding: 15px;
    border-bottom: 2px solid var(--primary);
}

.card-content {
    padding: 25px;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #fff;
}

.card-desc {
    color: #bbb;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.card-link {
    display: inline-block;
    padding: 8px 18px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    border-radius: 8px;

    font-size: 0.85rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.card-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s;
    z-index: -1;
}

.card-link:hover::before {
    left: 100%;
}

.tags {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tag {
    background: rgba(255, 0, 204, 0.1);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid var(--primary);
}

footer {
    text-align: center;
    padding: 2rem;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 0, 204, 0.2);
    color: #aaa;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.8rem;
    }

    header {
        padding: 2.5rem 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.2rem;
    }

    .card-title {
        font-size: 1.3rem;
    }
}

.neon-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.neon-bg::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(var(--primary), transparent);
    filter: blur(100px);
    opacity: 0.3;
    animation: float 20s infinite alternate;
}

.neon-bg::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(var(--secondary), transparent);
    filter: blur(80px);
    opacity: 0.3;
    animation: float 15s infinite alternate-reverse;
    top: 40%;
    right: 10%;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(50px, -50px) scale(1.2);
    }
    100% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}