﻿:root {
    --neon-purple: #F0F;
    --neon-cyan: #0FF;
    --neon-yellow: #FF0;
    --neon-red: #F00;
    --dark-blue: #0a0a2a;
    --deep-blue: rgba(0, 0, 30, 0.9);
    --glow-cyan: rgba(0, 255, 255, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background-color: var(--dark-blue);
    color: #DDD;
    overflow-x: hidden;
}
    body::before {/* CRT 效果优化 */
        content: ''; /* 必须设置content，否则伪元素不会显示 */
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 9999;
        background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
        background-size: 100% 4px, 6px 100%;
        animation: 扫描线 8s linear infinite;
        opacity: 0.7;
    }



@keyframes 扫描线 {
    0% {
        background-position: 0 0, 0 0;
    }

    100% {
        background-position: 0 100%, 0 0;
    }
}

/* 背景光晕效果 */
body {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(28, 58, 173, 0.3) 0%, transparent 25%), radial-gradient(circle at 90% 80%, rgba(200, 40, 100, 0.25) 0%, transparent 25%), radial-gradient(circle at 50% 50%, rgba(0, 50, 100, 0.1) 0%, transparent 50%);
    z-index: -1;
}
.project-image {
    overflow: hidden
}
/* 主容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 10;
}

/* 头部样式 */
.header {
    text-align: center;
    padding: 3rem 1rem;
    margin-bottom: 2rem;
    position: relative;
}

.title-container {
    display: inline-block;
    padding: 25px 40px;
    background: rgba(0, 0, 30, 0.85);
    border-radius: 1rem;
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

    .title-container::before {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        border: 1rem solid transparent;
        border-image: linear-gradient(45deg, var(--neon-purple), var(--neon-cyan), var(--neon-yellow)) 1;
        background: linear-gradient(45deg, rgba(255,0,0,0.1), rgba(0,255,0,0.1), rgba(0,255,255,0.1), rgba(0,0,255,0.1));
        z-index: -1;
        /*filter: blur(10px);
                opacity: 0.1;*/
    }

.main-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--neon-purple), var(--neon-cyan), var(--neon-yellow));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 15px rgba(240, 0, 255, 0.5);
    margin-bottom: 1rem;
    letter-spacing: 2px;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% {
        text-shadow: 0 0 15px rgba(240, 0, 255, 0.5);
    }

    100% {
        text-shadow: 0 0 25px rgba(240, 0, 255, 0.8), 0 0 35px rgba(255, 0, 255, 0.6);
    }
}

.subtitle {
    font-size: 1.5rem;
    color: var(--neon-yellow);
    text-shadow: 0 0.3rem 0.3rem rgba(255, 0, 0, 0.7);
    margin-top: 10px;
    letter-spacing: 1px;
}
/* 项目区域 */
.projects-section {
    margin: 4rem 0;
}

.projects-container {
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
    background: rgba(0, 0, 30, 0.7);
    border-radius: 10px;
    padding: 30px;
    border: 5px dotted rgba(0, 255, 255, 1);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    /*border-image: linear-gradient(45deg, var(--neon-purple), var(--neon-cyan), var(--neon-yellow)) 1;*/
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.project-card {
    background: rgba(10, 10, 40, 0.8);
    border-radius: 8px;
    padding: 25px;
    border: 1px solid rgba(0, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    flex-direction: column;
}

    .project-card:hover {
        transform: translateY(-10px);
        border-color: var(--neon-cyan);
        box-shadow: 0 10px 25px rgba(0, 255, 255, 0.3);
        cursor: pointer;
    }

    .project-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan));
        opacity: 0;
        transition: opacity 0.3s;
    }

    .project-card:hover::before {
        opacity: 1;
    }

.project-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
}

.project-title {
    font-size: 1.5rem;
    color: var(--neon-yellow);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .project-title::before {
        content: '▶';
        color: var(--neon-purple);
        font-size: 1.2rem;
    }

.project-description {
    color: #CCC;
    line-height: 1.6;
    font-size: 1.1rem;
    flex-grow: 1;
}

.project-tag {
    display: inline-block;
    background: rgba(0, 255, 255, 0.1);
    color: var(--neon-cyan);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 1rem;
    margin-top: 15px;
    margin-right: 10px;
    align-self: flex-start;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 3rem 1rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--neon-cyan);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s;
    padding: 15px;
    border-radius: 8px;
    min-width: 120px;
}

    .social-link:hover {
        color: var(--neon-purple);
        transform: translateY(-5px);
        background: rgba(0, 255, 255, 0.1);
    }

.social-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: inherit;
}

.contact-info {
    color: #888;
    font-size: 1rem;
    margin-top: 20px;
    line-height: 1.8;
}

.copyright {
    color: #666;
    font-size: 0.9rem;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.4rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .social-links {
        gap: 15px;
    }

    .social-link {
        min-width: 100px;
        padding: 10px;
    }

    .title-container {
        padding: 20px;
    }
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* 添加一些装饰性元素 */
body::after {
    content: " ";
    position: fixed;
    pointer-events:none;
    z-index: 100;
    top: 0;
    left: 0;
    bottom:0;
    right:0;
    border:5px dotted;
    border-image: linear-gradient(45deg, var(--neon-purple), var(--neon-cyan), var(--neon-yellow)) 1;
}
  