/* 全局样式 */
* {
    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: #f9f7f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #ffb6c1;
    margin: 10px auto;
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ffb6c1;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: #ff9aa2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 182, 193, 0.3);
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo:hover {
    color: #ffb6c1;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    padding: 0 15px;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.nav-links a:hover {
    color: #ffb6c1;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    transition: color 0.3s ease;
}

.menu-toggle:hover {
    color: #ffb6c1;
}

/* Hero 区 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fce4ec 0%, #e3f2fd 100%);
    text-align: center;
    padding-top: 70px;
}

.hero-content {
    max-width: 600px;
}

.avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin-bottom: 25px;
    border: 4px solid #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: bold;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #666;
}

.intro {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #666;
    line-height: 1.8;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff;
    color: #ffb6c1;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 182, 193, 0.3);
    background-color: #ffb6c1;
    color: #fff;
}

/* 关于我区 */
.about {
    padding: 100px 0;
    background-color: #fff;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.about-card {
    background-color: #f9f7f5;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.about-card h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.3rem;
    text-align: center;
    position: relative;
}

.about-card h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background-color: #ffb6c1;
    margin: 10px auto;
    border-radius: 1px;
}

.info-list {
    list-style: none;
}

.info-list li {
    margin-bottom: 12px;
    color: #666;
    display: flex;
    align-items: center;
}

.info-list li strong {
    color: #333;
    margin-right: 10px;
    min-width: 80px;
}

.about-card p {
    color: #666;
    line-height: 1.8;
    text-align: center;
}

/* 技能区 */
.skills {
    padding: 100px 0;
    background-color: #f9f7f5;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.skill-card {
    background-color: #fff;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.skill-icon {
    font-size: 3rem;
    color: #ffb6c1;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.skill-card:hover .skill-icon {
    transform: scale(1.1);
}

.skill-card h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2rem;
}

.skill-card p {
    color: #666;
    line-height: 1.6;
}



/* 联系区 */
.contact {
    padding: 100px 0;
    background-color: #f9f7f5;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-info {
    background-color: #fff;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contact-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
    margin-bottom: 25px;
    color: #333;
    font-size: 1.3rem;
    text-align: center;
    position: relative;
}

.contact-info h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background-color: #ffb6c1;
    margin: 10px auto;
    border-radius: 1px;
}

.contact-info p {
    margin-bottom: 20px;
    color: #666;
    display: flex;
    align-items: center;
}

.contact-info i {
    color: #ffb6c1;
    margin-right: 15px;
    font-size: 1.2rem;
}

.contact-form {
    background-color: #fff;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffb6c1;
    box-shadow: 0 0 0 3px rgba(255, 182, 193, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* 页脚 */
.footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links a {
        padding: 12px 0;
        width: 100%;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .intro {
        font-size: 1rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .avatar {
        width: 150px;
        height: 150px;
    }

    .about-card,
    .skill-card,
    .work-card,
    .contact-info,
    .contact-form {
        padding: 25px;
    }

    .section-title {
        font-size: 1.8rem;
    }
}