/* 全局样式 */
:root {
    --primary-color: #f5a8b9; /* 柔和的粉色作为主色调 */
    --secondary-color: #8a6d9f; /* 淡紫色作为辅助色 */
    --accent-color: #f7d6e0; /* 浅粉色作为强调色 */
    --text-color: #4a4a4a; /* 深灰色文字 */
    --light-text: #7a7a7a; /* 浅灰色文字 */
    --background-color: #fff9fb; /* 浅粉白色背景 */
    --section-bg: #ffffff; /* 白色区块背景 */
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.05); /* 柔和阴影 */
    --border-radius: 12px; /* 圆角边框 */
    --transition: all 0.3s ease; /* 平滑过渡效果 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    position: sticky;
    top: 0;
    background-color: rgba(255, 249, 251, 0.95);
    backdrop-filter: blur(5px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.logo {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 2rem;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.download-btn a {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(245, 168, 185, 0.3);
}

.download-btn a:hover {
    background-color: #e8899e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 168, 185, 0.4);
}

.download-btn i {
    margin-right: 8px;
}

/* 头部区域样式 */
header {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #fff9fb 0%, #f7d6e0 100%);
    border-radius: 0 0 50% 50% / 15%;
}

.profile-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.profile-image {
    flex: 0 0 250px;
}

.profile-photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    box-shadow: var(--shadow);
    border: 5px solid white;
}

.image-placeholder i {
    font-size: 100px;
    color: white;
}

.profile-text {
    flex: 1;
    max-width: 600px;
}

.profile-text h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.subtitle {
    font-size: 1.2rem;
    font-weight: normal;
    color: var(--primary-color);
    display: inline-block;
    margin-left: 15px;
    padding-left: 15px;
    border-left: 2px solid var(--primary-color);
}

.intro {
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* 通用部分样式 */
.section {
    padding: 80px 0;
    background-color: var(--section-bg);
    margin: 30px 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

/* 教育背景样式 */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--accent-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    z-index: 1;
    box-shadow: 0 0 0 4px var(--accent-color);
}

.timeline-content {
    position: relative;
    width: calc(50% - 40px);
    padding: 20px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.timeline-item:nth-child(odd) .timeline-content {
    left: calc(50% + 40px);
}

.timeline-item:nth-child(even) .timeline-content {
    left: 0;
}

.timeline-content h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.timeline-date {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--accent-color);
    color: var(--secondary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* 作品集样式 */
.portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    gap: 10px;
}

.filter-btn {
    padding: 8px 20px;
    background-color: white;
    border: 1px solid var(--accent-color);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    color: var(--text-color);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 0 20px;
}

.portfolio-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 250px;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.portfolio-placeholder {
    height: 100%;
    background-color: var(--accent-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
}

.portfolio-placeholder i {
    font-size: 50px;
    color: white;
    margin-bottom: 15px;
}

.portfolio-placeholder p {
    color: var(--secondary-color);
    font-weight: 500;
}

/* 专业技能样式 */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

.skills-category h3 {
    margin-bottom: 25px;
    color: var(--secondary-color);
    text-align: center;
    font-size: 1.3rem;
}

.skill-item {
    margin-bottom: 20px;
}

.skill-name {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.skill-bar {
    height: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
    transition: width 1s ease-in-out;
}

/* 实习经历样式 */
.timeline-content ul {
    padding-left: 20px;
}

.timeline-content li {
    margin-bottom: 8px;
}

/* 获奖情况样式 */
.awards-container {
    max-width: 800px;
    margin: 0 auto;
}

.award-item {
    display: flex;
    margin-bottom: 30px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.award-icon {
    flex: 0 0 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.8rem;
}

.award-content {
    flex: 1;
    padding: 20px;
}

.award-content h3 {
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.award-date {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 10px;
}

/* 联系方式样式 */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    background-color: white;
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
}

.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-form h3 {
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(245, 168, 185, 0.2);
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
}

.submit-btn:hover {
    background-color: #e8899e;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 30px 0;
    color: var(--light-text);
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 15px 0;
    }
    
    .nav-links {
        margin: 15px 0;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links li {
        margin: 5px 10px;
    }
    
    .download-btn {
        margin-top: 10px;
    }
    
    .profile-container {
        flex-direction: column;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        left: 80px !important;
    }
    
    .portfolio-grid,
    .skills-container,
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .award-item {
        flex-direction: column;
    }
    
    .award-icon {
        padding: 20px 0;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section {
    animation: fadeIn 0.8s ease-out forwards;
}

.portfolio-item, .skill-item, .award-item, .contact-item {
    animation: fadeIn 0.5s ease-out forwards;
    animation-delay: calc(var(--i, 0) * 0.1s);
    opacity: 0;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e8899e;
}