/* 全局样式 - 文艺大气风格 */
:root {
    --primary-color: #1a2a3a;
    --secondary-color: #3a506b;
    --accent-color: #5b8fb9;
    --text-color: #2c3e50;
    --light-text: #7a8b99;
    --background-color: #f7f9fc;
    --light-gray: #f0f4f8;
    --border-color: #e1e8ed;
    --shadow: 0 3px 15px rgba(26, 42, 58, 0.08);
    --shadow-hover: 0 8px 25px rgba(26, 42, 58, 0.12);
    --section-spacing: 4rem;
}

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

body {
    font-family: 'Source Serif Pro', 'Georgia', serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    padding: 0;
    margin: 0;
    letter-spacing: 0.01em;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2.5rem;
    background-color: #ffffff;
    box-shadow: 0 0 40px rgba(26, 42, 58, 0.05);
    border-radius: 3px;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* 头部样式 - 文艺大气 */
.header {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--section-spacing);
    position: relative;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(to right, var(--accent-color), transparent);
}

.profile-section {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .profile-section {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.profile-info {
    flex: 1;
}

.name {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.title {
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 0.8rem;
    color: var(--secondary-color);
    letter-spacing: 0.05em;
}

.tagline {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--light-text);
    letter-spacing: 0.02em;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .contact-info {
        align-items: flex-end;
    }
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.contact-item i {
    width: 18px;
    color: var(--accent-color);
}

.contact-item span {
    font-size: 0.95rem;
}

/* 区块样式 - 文艺大气 */
.section {
    margin-bottom: var(--section-spacing);
}

.section-title {
    font-size: 2.3rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 0.8rem;
    letter-spacing: 0.02em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 2px;
    background: linear-gradient(to right, var(--accent-color), transparent);
}

.section-content {
    padding-left: 0;
}

/* 个人简介样式 - 文艺大气 */
.section-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    text-align: justify;
}

.section-content p.introduction:first-of-type::first-letter {
    font-size: 2.5rem;
    font-weight: 600;
    float: left;
    line-height: 1;
    margin-right: 0.1em;
    color: var(--accent-color);
    text-shadow: 1px 1px 0 var(--light-gray);
}

/* 技能样式 - 文艺大气 */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.skill-category h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 500;
    letter-spacing: 0.02em;
    position: relative;
    padding-bottom: 0.5rem;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 1px;
    background-color: var(--accent-color);
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill {
    background-color: var(--light-gray);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-color);
    transition: all 0.3s ease;
    border-left: 3px solid var(--accent-color);
}

.skill:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* 工作经历样式 - 文艺大气 */
.experience-item {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.experience-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.experience-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-color);
    letter-spacing: 0.01em;
}

.experience-date {
    font-size: 1rem;
    color: var(--light-text);
    font-weight: 400;
    font-style: italic;
}

.company {
    font-size: 1.25rem;
    margin-bottom: 1.2rem;
    color: var(--secondary-color);
    font-weight: 400;
}

.experience-details {
    padding-left: 1.5rem;
}

.experience-details li {
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
    line-height: 1.7;
    position: relative;
}

.experience-details li::before {
    content: '•';
    position: absolute;
    left: -1.5rem;
    color: var(--accent-color);
    font-weight: bold;
}

/* 教育背景样式 - 文艺大气 */
.education-item {
    margin-bottom: 2.5rem;
    position: relative;
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.education-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-color);
    letter-spacing: 0.01em;
}

.education-date {
    font-size: 1rem;
    color: var(--light-text);
    font-weight: 400;
    font-style: italic;
}

.school {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    color: var(--secondary-color);
    font-weight: 400;
}

.education-details {
    font-size: 1.05rem;
    color: var(--text-color);
    color: var(--light-text);
    font-style: normal;
    font-variant: normal;
    text-transform: none;
    letter-spacing: normal;
}

/* 项目经验样式 - 文艺大气 */
.project-item {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background-color: var(--light-gray);
    border-radius: 4px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent-color);
}

.project-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.project-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.2rem;
    color: var(--primary-color);
    letter-spacing: 0.01em;
}

.project-description {
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tech {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 400;
}

/* 页脚样式 - 文艺大气 */
.footer {
    margin-top: 5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
}

.footer p {
    margin-bottom: 0.8rem;
    color: var(--light-text);
    font-size: 0.95rem;
}

.footer-quote {
    font-style: italic;
    font-size: 1rem;
    color: var(--secondary-color);
    margin-top: 1rem;
}

/* 响应式设计 - 文艺大气 */
@media (max-width: 768px) {
    .container {
        padding: 2rem 1.5rem;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
    
    .name {
        font-size: 2.8rem;
    }
    
    .title {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 1.9rem;
    }
    
    .header {
        padding: 3rem 0;
    }
    
    .section {
        margin-bottom: 3rem;
    }
}

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

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

/* 打印样式 - 文艺大气 */
@media print {
    body {
        font-size: 12pt;
        background-color: white;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
        box-shadow: none;
        margin: 0;
    }
    
    .section {
        break-inside: avoid;
        margin-bottom: 2rem;
    }
    
    .project-item {
        background-color: white;
        box-shadow: none;
    }
    
    .header::after, .section-title::after, .footer::before {
        display: none;
    }
}