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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* 导航栏样式 */
header {
    background-color: #333;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    display: block;
    padding: 15px 0;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ffd700;
}

/* 英雄区样式 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-align: center;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* 内容区域样式 */
section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
    position: relative;
}

section h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background-color: #667eea;
    margin: 20px auto 0;
    border-radius: 2px;
}

/* 关于我部分 */
.about {
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    margin: 50px 0;
    border-radius: 10px;
    overflow: hidden;
}

.about-content {
    display: flex;
    align-items: center;
    padding: 0 50px;
}

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

.about-text p {
    margin-bottom: 20px;
}

/* 兴趣爱好部分 */
.hobbies-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.hobby-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hobby-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.hobby-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #667eea;
}

.hobby-item p {
    font-size: 1rem;
    line-height: 1.6;
}

/* 个人愿景部分 */
.vision {
    background-color: #f9f9f9;
    margin: 50px 0;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.vision-content {
    padding: 0 50px;
    text-align: center;
}

.vision-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
}

footer p {
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    nav ul li {
        margin: 0 10px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    section {
        padding: 80px 15px;
    }

    section h2 {
        font-size: 2rem;
    }

    .about-content {
        flex-direction: column;
        padding: 30px;
    }

    .hobbies-content {
        grid-template-columns: 1fr;
    }

    .vision-content {
        padding: 0 30px;
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 5px 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    section {
        padding: 60px 10px;
    }

    section h2 {
        font-size: 1.8rem;
    }

    .about-content,
    .vision-content {
        padding: 20px;
    }

    .hobby-item {
        padding: 20px;
    }
}