/* 基础样式 */
:root {
    --primary-color: #ff7eb9; /* 主粉色 */
    --secondary-color: #ffd1dc; /* 浅粉色 */
    --accent-color: #ff6f61; /* 强调色 */
    --text-color: #4a4a4a; /* 正文颜色 */
    --background-color: #fff5f8; /* 背景色 */
}

body {
    font-family: 'Segoe UI', 'PingFang SC', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/floral-pattern.png') repeat;
    opacity: 0.1;
    pointer-events: none;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero .subtitle {
    font-size: 1.5rem;
    font-weight: 300;
}

/* 内容区域样式 */
section {
    padding: 60px 0;
}

h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 30px;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

/* 技能列表样式 */
.skills ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.skills li {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.skills li:hover {
    transform: translateY(-5px);
}

/* 教育经历时间轴样式 */
.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--primary-color);
}

.item {
    width: 45%;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    position: relative;
}

.item:nth-child(odd) {
    margin-left: 55%;
}

.item:nth-child(even) {
    margin-right: 55%;
}

.item::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 3px solid white;
}

.item:nth-child(odd)::before {
    left: -30px;
}

.item:nth-child(even)::before {
    right: -30px;
}

/* 页脚样式 */
footer.contact {
    background: var(--primary-color);
    color: white;
    padding: 40px 0;
    text-align: center;
}

footer h2 {
    color: white;
}

footer h2::after {
    background: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .item {
        width: 100%;
        margin-left: 0 !important;
    }
    
    .item::before {
        left: -10px !important;
        right: auto !important;
    }
}
