/* 简历页面专用样式 */

/* 简历英雄区 */
.resume-hero {
    height: 400px;
    background-color: var(--accent-color);
    background-image: url('../images/resume-hero.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.resume-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.resume-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 800px;
    padding: var(--spacing-md);
}

.resume-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.resume-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-md);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
}

/* 简历容器 */
.resume-container {
    display: flex;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg) 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* 侧边栏样式 */
.resume-sidebar {
    flex: 0 0 300px;
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    box-shadow: var(--box-shadow);
    align-self: flex-start;
    position: sticky;
    top: 100px;
}

.profile {
    text-align: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid #eee;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto var(--spacing-sm);
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.profession {
    color: #666;
    font-size: 0.9rem;
}

.sidebar-section {
    margin-bottom: var(--spacing-md);
}

.sidebar-section h3 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.contact-list .icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.contact-list .icon svg {
    fill: var(--primary-color);
}

/* 技能条 */
.skill-item {
    margin-bottom: 15px;
}

.skill-name {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.skill-bar {
    height: 6px;
    background-color: #eee;
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: width 1s ease;
}

/* 语言列表 */
.language-list {
    list-style: none;
}

.language-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
}

.language-list li:last-child {
    border-bottom: none;
}

.language-level {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* 兴趣标签 */
.interests {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.interest-tag {
    display: inline-block;
    padding: 5px 10px;
    background-color: #f0f0f0;
    border-radius: 15px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.interest-tag:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 简历内容 */
.resume-content {
    flex: 1;
}

.resume-section {
    margin-bottom: var(--spacing-lg);
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    box-shadow: var(--box-shadow);
}

.section-title {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    color: var(--primary-color);
}

.section-title .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.section-title .icon svg {
    fill: var(--primary-color);
}

.section-content {
    color: var(--text-color);
}

.section-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* 时间线样式 */
.timeline-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: var(--spacing-md);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 19px;
    bottom: -20px;
    width: 2px;
    background-color: #eee;
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-date {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 10px;
}

.timeline-content ul {
    margin-left: 20px;
    margin-top: 10px;
}

.timeline-content ul li {
    margin-bottom: 5px;
    line-height: 1.5;
}

/* 成就项目 */
.achievement-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #eee;
}

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

.achievement-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

/* 联系表单 */
.contact-form {
    margin-top: var(--spacing-sm);
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 成功模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.close-modal:hover {
    opacity: 1;
}

.success-icon {
    margin: 0 auto 15px;
    width: 60px;
    height: 60px;
}

.modal-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.modal-content p {
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .resume-container {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .resume-sidebar {
        flex: 0 0 250px;
    }
}

@media (max-width: 768px) {
    .resume-hero {
        height: 300px;
    }
    
    .resume-hero h1 {
        font-size: 2.5rem;
    }
    
    .resume-container {
        flex-direction: column;
    }
    
    .resume-sidebar {
        flex: auto;
        position: static;
        width: 100%;
        margin-bottom: var(--spacing-md);
    }
    
    .profile-image {
        width: 120px;
        height: 120px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons a {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .resume-hero {
        height: 250px;
    }
    
    .resume-hero h1 {
        font-size: 2rem;
    }
    
    .resume-hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .timeline-content h3 {
        font-size: 1.1rem;
    }
} 