/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0a0a16;
    color: #e0e0ff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* 科技风格的英雄区域 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a16 0%, #1a1a2e 50%, #16213e 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 70%, rgba(100, 100, 255, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #64ffda, #00b8d4, #0055ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #b0b0ff;
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #64ffda;
    font-weight: 500;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: rgba(100, 100, 255, 0.1);
    border: 1px solid rgba(100, 100, 255, 0.3);
    border-radius: 5px;
    color: #64ffda;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 100, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    background: rgba(100, 100, 255, 0.2);
    border-color: #64ffda;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.3);
}

/* 关于我部分 */
.about {
    padding: 4rem 0;
    background: rgba(26, 26, 46, 0.5);
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #64ffda;
    position: relative;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, #64ffda, transparent);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-skills h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #00b8d4;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill {
    padding: 0.5rem 1rem;
    background: rgba(100, 100, 255, 0.1);
    border: 1px solid rgba(100, 100, 255, 0.3);
    border-radius: 20px;
    font-size: 0.9rem;
    color: #b0b0ff;
    transition: all 0.3s ease;
}

.skill:hover {
    background: rgba(100, 255, 218, 0.2);
    border-color: #64ffda;
    color: #64ffda;
    transform: scale(1.05);
}

/* 项目部分 */
.projects {
    padding: 4rem 0;
}

.projects h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #64ffda;
    position: relative;
}

.projects h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, #64ffda, transparent);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid rgba(100, 100, 255, 0.3);
    border-radius: 10px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #64ffda, #00b8d4, #0055ff);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.2);
    border-color: #64ffda;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #00b8d4;
}

.project-card p {
    margin-bottom: 1.5rem;
    color: #b0b0ff;
}

.project-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: rgba(100, 100, 255, 0.1);
    border: 1px solid rgba(100, 100, 255, 0.3);
    border-radius: 5px;
    color: #64ffda;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: rgba(100, 255, 218, 0.2);
    border-color: #64ffda;
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.3);
}

/* 联系部分 */
.contact {
    padding: 4rem 0;
    background: rgba(26, 26, 46, 0.5);
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #64ffda;
    position: relative;
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, #64ffda, transparent);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    margin-top: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #00b8d4;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(10, 10, 22, 0.5);
    border: 1px solid rgba(100, 100, 255, 0.3);
    border-radius: 5px;
    color: #e0e0ff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #64ffda;
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

.btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(90deg, #64ffda, #00b8d4);
    border: none;
    border-radius: 5px;
    color: #0a0a16;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.4);
}

/* 页脚 */
footer {
    padding: 2rem 0;
    background: rgba(10, 10, 22, 0.8);
    text-align: center;
    border-top: 1px solid rgba(100, 100, 255, 0.3);
}

footer p {
    color: #b0b0ff;
    font-size: 0.9rem;
}

/* 动画效果 */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .container {
        width: 95%;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a16;
}

::-webkit-scrollbar-thumb {
    background: rgba(100, 100, 255, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 255, 218, 0.7);
}

/* 粒子效果 */
.particle {
    position: fixed;
    top: -10px;
    width: 4px;
    height: 4px;
    background: rgba(100, 255, 218, 0.6);
    border-radius: 50%;
    z-index: -1;
    animation: particleFall linear forwards;
}

@keyframes particleFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}