/* 全局样式 */
:root {
    /* 基础色调 */
    --bg-color: #f5f5f5;
    --card-bg: #ffffff;
    --text-color: #2c3e50;
    --text-color-dark: #1a2533;
    --text-secondary: #4a5568;
    --text-light: #718096;
    --border-color: #e2e8f0;
    --border-color-light: #edf2f7;
    
    /* 主题色调 */
    --primary-color: #41B883; /* 清新豆绿色 */
    --secondary-color: #34A0A4;
    --accent-color: #3B82F6;
    
    /* 文字和尺寸 */
    --section-title-color: #41B883;
    --heading-color: #2c3e50;
    --text-normal: #3c4858;
    
    /* 阴影效果 */
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    --card-hover-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);

    /* 边框 */
    --card-border: 1px solid rgba(226, 232, 240, 0.8);
    --border-radius: 8px;

    /* 动画时间 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

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

body {
    font-family: 'Inter', 'SF Pro Display', 'PingFang SC', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--bg-color);
    padding: 0;
    margin: 0;
    font-size: 16px;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 2% auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0;
    background-color: var(--bg-color);
    min-height: 95vh;
}

.left-column, .right-column {
    background-color: var(--card-bg);
    box-shadow: var(--card-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin: 10px;
}

/* 重新设计布局结构 */
.left-column {
    padding: 2.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.right-column {
    padding: 2.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* 头部样式 */
.header {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--section-spacing);
}

/* 头像样式 */
.avatar-container {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    background-color: #ffffff;
    /* 图片渲染质量优化 */
    image-rendering: -webkit-optimize-contrast; 
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-font-smoothing: subpixel-antialiased;
    will-change: transform;
    transition: opacity 0.2s ease;
}

.avatar:hover {
    opacity: 0.95;
}

.profile {
    text-align: center;
    margin-bottom: 2rem;
}



.profile .name {
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
    color: var(--text-color-dark);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.profile .title {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 0;
}

/* 分区标签 */
.section-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--mineral-green);
    font-weight: 600;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    position: relative;
    padding-left: 0.5rem;
    border-left: 2px solid var(--mineral-green);
}

/* 联系信息 */
.contact-section {
    margin-bottom: 2.5rem;
}

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

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    font-size: 1rem;
    color: var(--text-secondary);
}

.contact-item i {
    width: 1.2rem;
    color: var(--mineral-green-light);
    margin-right: 0.6rem;
    font-size: 1rem;
    text-align: center;
}

/* 教育背景 */
.education-section {
    margin-bottom: 2rem;
}

.education-content {
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.education-item {
    margin-bottom: 2.5rem;
    padding: 0.5rem 0.5rem 0.5rem 0;
}

.edu-date {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-bottom: 0.3rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.education-school {
    font-size: 1rem;
    color: var(--space-blue);
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.education-degree {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.education-fields {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    background-color: rgba(236, 240, 241, 0.8);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

/* 技能标签 */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
    margin-top: 0.8rem;
}

.skill-tag {
    display: inline-block;
    color: var(--text-color);
    background: rgba(246, 248, 250, 0.8);
    padding: 0.45rem 0.8rem;
    border-radius: 4px;
    border: 1px solid rgba(230, 232, 236, 0.5);
    transition: all 0.2s ease;
    font-weight: 400;
    font-size: 0.9rem;
    margin-right: 0.6rem;
    margin-bottom: 0.6rem;
}

.skill-tag:nth-child(1) { background: linear-gradient(120deg, rgba(213,245,237,0.5), rgba(217,240,248,0.7)); }
.skill-tag:nth-child(2) { background: linear-gradient(120deg, rgba(217,240,248,0.5), rgba(231,236,253,0.7)); }
.skill-tag:nth-child(3) { background: linear-gradient(120deg, rgba(231,236,253,0.5), rgba(245,238,248,0.7)); }
.skill-tag:nth-child(4) { background: linear-gradient(120deg, rgba(245,238,248,0.5), rgba(254,235,232,0.7)); }
.skill-tag:nth-child(5) { background: linear-gradient(120deg, rgba(254,235,232,0.5), rgba(255,245,221,0.7)); }
.skill-tag:nth-child(6) { background: linear-gradient(120deg, rgba(255,245,221,0.5), rgba(232,248,227,0.7)); }
.skill-tag:nth-child(7) { background: linear-gradient(120deg, rgba(232,248,227,0.5), rgba(223,243,246,0.7)); }
.skill-tag:nth-child(8) { background: linear-gradient(120deg, rgba(223,243,246,0.5), rgba(228,237,250,0.7)); }

.skill-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    background-color: rgba(255, 255, 255, 0.8);
}

/* 右侧栏通用样式 */
.section {
    margin-bottom: var(--section-spacing);
    position: relative;
}

.section:last-child {
    margin-bottom: 0;
}

.section-label {
    position: relative;
    font-size: 1.1rem;
    color: var(--text-color-dark);
    margin-bottom: 1rem;
    font-weight: 600;
    padding-left: 10px;
    border-left: 3px solid var(--primary-color);
}

.section-title {
    position: relative;
    font-size: 1.2rem;
    color: var(--text-color-dark);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    font-weight: 600;
    padding-left: 10px;
    border-left: 3px solid var(--primary-color);
}

.section-title i {
    color: var(--space-blue-light);
    font-size: 1.1rem;
    opacity: 0.8;
}

.section-content {
    padding: 0 0 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.section-content p {
    margin-bottom: 1rem;
    text-align: justify;
    letter-spacing: 0.01em;
    max-width: 95%;
}

/* 时间线样式 */
.timeline {
    position: relative;
    padding-left: 1.2rem;
    padding-top: 0.5rem;
}

/* 隐藏时间线垂直线 */
.timeline:before {
    display: none;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-bottom: 0.5rem;
}

/* 隐藏时间线上的点 */
.timeline-dot {
    display: none;
}

.timeline-date {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.2rem;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

.timeline-content {
    background-color: var(--card-bg);
    padding: 1.8rem 2.2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color-light);
    margin-bottom: 1.5rem;
    position: relative;
}

.timeline-content:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-hover-shadow);
}

.timeline-title {
    font-size: 1.2rem;
    color: var(--text-color-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline-subtitle {
    font-size: 0.95rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 400;
    display: inline-block;
}

.job-section {
    margin-top: 1.4rem;
    padding: 0.5rem 0 0.8rem;
    position: relative;
    border-top: 1px solid var(--border-color);
    transition: all 0.3s ease;
    padding: 0.8rem;
    border-radius: 6px;
    margin-left: -0.8rem;
    margin-right: -0.8rem;
}

.job-section:hover {
    background-color: rgba(236, 240, 241, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.job-title {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.job-title:before {
    content: '\f305'; /* 线性图标: rocket */
    font-family: 'Font Awesome\ 5 Free';
    font-weight: 900;
    font-size: 0.7rem;
    color: var(--mineral-green);
    opacity: 0.8;
}

.job-section:nth-child(2) .job-title:before { content: '\f0c0'; /* 用户组图标 */ }
.job-section:nth-child(3) .job-title:before { content: '\f201'; /* 图表图标 */ }

.job-points {
    padding-left: 0;
    margin-top: 0.7rem;
    margin-bottom: 0.5rem;
    list-style: none;
}

.job-points li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.job-points li:before {
    content: '—';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--mineral-green-light);
    opacity: 0.7;
}

.job-points strong {
    color: var(--space-blue-light);
    font-weight: 600;
    border-bottom: 1px dotted rgba(44, 62, 80, 0.2);
}

/* 添加数据可视化效果 */
.separator {
    color: var(--text-light);
    margin: 0 0.4rem;
    font-weight: 300;
    opacity: 0.6;
}

.stats {
    display: inline-flex;
    align-items: center;
    margin-left: 0.4rem;
    font-size: 0.75rem;
    color: var(--space-blue-light);
    background-color: rgba(236, 240, 241, 0.5);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    border: 1px solid var(--border-color);
    gap: 0.25rem;
}

.stats i {
    font-size: 0.7rem;
    color: var(--mineral-green);
}

/* 微型图表 */
.mini-chart {
    display: inline-flex;
    align-items: flex-end;
    height: 12px;
    margin-left: 3px;
    gap: 1px;
}

.chart-bar {
    width: 3px;
    background-color: var(--mineral-green-light);
    border-radius: 1px;
    opacity: 0.8;
}

.chart-bar:nth-child(1) { height: 30%; }
.chart-bar:nth-child(2) { height: 60%; }
.chart-bar:nth-child(3) { height: 100%; }

/* 教育部分样式 */
.education-content {
    padding: 1.5rem 1.8rem;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color-light);
    transition: all 0.2s ease-out;
    position: relative;
    overflow: hidden;
}

.education-content:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border-color-light) 50%, transparent);
    opacity: 0.7;
}

.education-content:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-hover-shadow);
}

.education-item {
    position: relative;
    z-index: 1;
    margin-bottom: 0.5rem;
}

.education-school {
    font-size: 1.2rem;
    color: var(--text-color-dark);
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.education-degree {
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
    display: inline-block;
}

.edu-date {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 0.8rem;
    display: inline-block;
}

.education-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.tag {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    background-color: rgba(236, 240, 241, 0.8);
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    border: 1px solid var(--border-color-light);
}

/* 项目展示部分样式 */
.works-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
    margin-top: 0.5rem;
}

.work-item {
    position: relative;
    background-color: white;
    padding: 1rem 1.2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
    overflow: hidden;
    border: 1px solid var(--border-color-light);
    z-index: 1;
}

.work-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.work-title {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 500;
    position: relative;
    line-height: 1.4;
}

.work-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--mineral-green);
    background-color: rgba(236, 240, 241, 0.8);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.8rem;
    border: 1px solid var(--border-color-light);
    transition: all 0.2s ease;
}

.work-link i {
    font-size: 0.75rem;
}

.work-link:hover {
    background-color: var(--mineral-green-light);
    color: var(--text-color-dark);
}

/* 页脚样式 */
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-size: 0.9rem;
    background-color: var(--light-gray);
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

.footer:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 添加动画到各个元素 */
.header {
    animation: slideInLeft 0.8s ease-out;
}

#summary {
    animation: fadeIn 1s ease-out 0.2s both;
}

.timeline-item:nth-child(odd) {
    animation: slideInLeft 0.8s ease-out both;
}

.timeline-item:nth-child(even) {
    animation: slideInRight 0.8s ease-out both;
}

.education-content {
    animation: fadeIn 0.8s ease-out 0.4s both;
}

.work-item:nth-child(1) {
    animation: fadeIn 0.8s ease-out 0.5s both;
}

.work-item:nth-child(2) {
    animation: fadeIn 0.8s ease-out 0.7s both;
}

/* 响应式设计 - 适配各种屏幕尺寸 */
/* 平板设备的响应式设计 */
@media (max-width: 1024px) {
    .container {
        max-width: 95%;
        margin: 1.5% auto;
    }
}

/* 中等屏幕设备的响应式设计 */
@media (max-width: 768px) {
    /* 将两列布局变为单列 */
    .container {
        grid-template-columns: 1fr;
        max-width: 95%;
        margin: 15px auto;
        gap: 15px;
    }
    
    .left-column, .right-column {
        padding: 2rem;
    }
    
    /* 调整头像和个人信息 */
    .profile {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    /* 调整联系信息 */
    .contact-info {
        max-width: 400px;
        margin: 0 auto;
    }
    
    /* 调整工作经历卡片 */
    .timeline-content {
        padding: 1.5rem;
    }
    
    /* 调整项目展示 */
    .works-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* 小屏幕手机设备的响应式设计 */
@media (max-width: 480px) {
    /* 调整内边距，节省空间 */
    .left-column, .right-column {
        padding: 1.5rem;
        margin: 8px;
    }
    
    /* 头像和个人信息的优化 */
    .avatar {
        width: 120px;
        height: 120px;
    }
    
    .name {
        font-size: 1.5rem;
    }
    
    .title {
        font-size: 1rem;
    }
    
    /* 调整标题大小 */
    .section-title, .section-label {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    /* 调整工作经历卡片的内边距 */
    .timeline-content {
        padding: 1.3rem;
    }
    
    .timeline-title {
        font-size: 1.1rem;
    }
    
    .timeline-subtitle {
        font-size: 0.9rem;
    }
    
    /* 优化技能标签在手机上的展示 */
    .skill-tag {
        padding: 0.4rem 0.7rem;
        font-size: 0.85rem;
        margin-right: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    /* 调整教育经历部分 */
    .education-school {
        font-size: 1.1rem;
    }
    
    .education-degree, .edu-date {
        font-size: 0.9rem;
    }
    
    /* 调整项目展示卡片 */
    .work-item {
        padding: 1rem;
    }
}

/* 打印样式优化 */
@media print {
    body {
        background-color: white;
    }
    
    .container {
        max-width: 100%;
        box-shadow: none;
        padding: 0;
    }
    
    .timeline-content:hover {
        transform: none;
        box-shadow: none;
    }
    
    .work-item:hover {
        transform: none;
        box-shadow: none;
    }
}
