* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
    color: #0f172a;
    line-height: 1.5;
    scroll-behavior: smooth;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 导航栏 */
.navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.logo {
    font-size: 1.65rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.3px;
}

.nav-links {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: #1e293b;
    transition: 0.2s ease;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: #3b82f6;
    transform: translateY(-1px);
}

/* 通用区块样式 */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.section-sub {
    text-align: center;
    color: #475569;
    max-width: 650px;
    margin: -1rem auto 3rem auto;
}

/* Hero 区域 */
.hero {
    padding: 60px 0 40px 0;
    text-align: center;
}

.avatar {
    width: 140px;
    height: 140px;
    margin: 0 auto 24px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.15);
    border: 4px solid white;
    transition: transform 0.2s ease;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar:hover {
    transform: scale(1.02);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #0f172a, #3b82f6);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 12px;
}

.hero-tag {
    font-size: 1.25rem;
    color: #3b82f6;
    font-weight: 600;
    margin-bottom: 16px;
}

.hero-desc {
    max-width: 600px;
    margin: 0 auto 28px;
    color: #334155;
    font-size: 1.05rem;
}

.btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.btn-primary {
    background: #0f172a;
    border-color: #0f172a;
    color: white;
}

.btn-primary:hover {
    background: #1e293b;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.2);
}

.btn-outline:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    transform: translateY(-2px);
}

.social-icons {
    margin-top: 36px;
    display: flex;
    justify-content: center;
    gap: 24px;
}

.social-icons a {
    color: #475569;
    font-size: 1.5rem;
    transition: 0.2s;
}

.social-icons a:hover {
    color: #0f172a;
    transform: translateY(-3px);
}

/* 关于区域 */
.about-card {
    background: white;
    border-radius: 32px;
    padding: 40px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2ff;
    transition: box-shadow 0.2s;
}

.about-card p {
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 20px;
    line-height: 1.6;
}

.about-highlight {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: 28px;
    justify-content: center;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f1f5f9;
    padding: 8px 20px;
    border-radius: 60px;
    font-weight: 500;
}

.highlight-item i {
    font-size: 1.25rem;
    color: #3b82f6;
}

/* 技能区域 */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
}

.skill-badge {
    background: white;
    backdrop-filter: blur(4px);
    padding: 12px 28px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.02);
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.skill-badge i {
    font-size: 1.3rem;
    color: #3b82f6;
}

.skill-badge:hover {
    transform: translateY(-4px);
    border-color: #cbd5e1;
    box-shadow: 0 12px 20px -12px rgba(0, 0, 0, 0.1);
}

/* 项目卡片 */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.project-card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #eef2ff;
    box-shadow: 0 6px 12px -8px rgba(0, 0, 0, 0.05);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -15px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.project-img {
    background: linear-gradient(145deg, #eef2ff, #e0e7ff);
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #3b82f6;
}

.project-info {
    padding: 24px 24px 28px;
}

.project-info h3 {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.project-info p {
    color: #475569;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tech-stack span {
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #1e293b;
}

.project-link {
    text-decoration: none;
    font-weight: 600;
    color: #3b82f6;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
}

.project-link:hover {
    gap: 10px;
    color: #2563eb;
}

/* 联系区域 */
.contact-wrapper {
    background: white;
    border-radius: 32px;
    padding: 48px 32px;
    text-align: center;
    border: 1px solid #eef2ff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #f1f5f9;
    padding: 14px 32px;
    border-radius: 80px;
    margin-bottom: 32px;
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-email i {
    font-size: 1.3rem;
    color: #3b82f6;
}

.contact-email a {
    text-decoration: none;
    color: #0f172a;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.social-circle {
    background: #f8fafc;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #334155;
    transition: 0.2s;
    border: 1px solid #e2e8f0;
}

.social-circle:hover {
    background: #0f172a;
    color: white;
    transform: translateY(-4px);
    border-color: #0f172a;
}

/* Footer */
footer {
    text-align: center;
    padding: 32px 0 48px;
    border-top: 1px solid #e2e8f0;
    margin-top: 20px;
    color: #475569;
    font-size: 0.85rem;
}

/* 响应式 */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    section {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .nav-container {
        flex-direction: column;
    }

    .about-card {
        padding: 28px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-tag {
        font-size: 1rem;
    }

    .btn-group {
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .skill-badge {
        padding: 8px 18px;
        font-size: 0.85rem;
    }

    .contact-email {
        font-size: 0.85rem;
        padding: 10px 20px;
    }
}