/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #0a0e17;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 背景效果 */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(10, 14, 23, 0.8) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 14, 23, 0.8) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
}

.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 14, 23, 0.8) 0%, rgba(17, 25, 40, 0.9) 100%);
    z-index: -1;
}

/* 主容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部 */
.header {
    padding: 80px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(66, 153, 225, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.name {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #4299e1, #38b2ac);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title {
    font-size: 1.5rem;
    color: #a0aec0;
    margin-bottom: 30px;
}

.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: #e0e0e0;
}

.contact-item .icon {
    font-size: 1.3rem;
}

/* 导航栏 */
.nav {
    background-color: rgba(17, 25, 40, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(66, 153, 225, 0.2);
}

.nav-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: block;
    padding: 15px 20px;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #4299e1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4299e1, #38b2ac);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
}

/* 通用区块样式 */
.section {
    margin: 60px 0;
    padding: 40px;
    background-color: rgba(17, 25, 40, 0.6);
    border-radius: 15px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(66, 153, 225, 0.1);
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4299e1, #38b2ac);
}

.section-header {
    margin-bottom: 30px;
    position: relative;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #4299e1;
}

.section-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #4299e1, #38b2ac);
    border-radius: 2px;
}

/* 个人简介 */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.about-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.about-item .label {
    font-size: 0.9rem;
    color: #a0aec0;
    font-weight: 600;
}

.about-item .value {
    font-size: 1.1rem;
    color: #e0e0e0;
}

/* 工作经历 */
.experience-item {
    margin-bottom: 40px;
    padding-left: 30px;
    position: relative;
}

.experience-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #4299e1, #38b2ac);
}

.experience-item::after {
    content: '';
    position: absolute;
    left: -4px;
    top: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4299e1;
    box-shadow: 0 0 10px rgba(66, 153, 225, 0.5);
}

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

.company {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4299e1;
}

.period {
    font-size: 0.9rem;
    color: #a0aec0;
    background-color: rgba(66, 153, 225, 0.1);
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid rgba(66, 153, 225, 0.2);
}

.position {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 15px;
}

.responsibilities {
    list-style: none;
    padding: 0;
}

.responsibilities li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    color: #e0e0e0;
}

.responsibilities li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #4299e1;
    font-weight: bold;
}

/* 项目经历 */
.projects-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.project-category {
    margin-bottom: 20px;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #38b2ac;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(56, 178, 172, 0.2);
}

.project-item {
    margin-bottom: 30px;
    padding: 20px;
    background-color: rgba(10, 14, 23, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(66, 153, 225, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.project-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #4299e1;
    margin-bottom: 5px;
}

.project-period {
    font-size: 0.9rem;
    color: #a0aec0;
    margin-bottom: 15px;
    display: block;
}

.project-description {
    color: #e0e0e0;
    line-height: 1.6;
}

/* 专业技能 */
.skills-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

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

.skill-item {
    padding: 20px;
    background-color: rgba(10, 14, 23, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(66, 153, 225, 0.1);
}

.skill-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 10px;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #4299e1, #38b2ac);
    border-radius: 4px;
    transition: width 1.5s ease;
}

.skill-level {
    font-size: 0.9rem;
    color: #a0aec0;
}

.skills-chart {
    height: 400px;
    background-color: rgba(10, 14, 23, 0.5);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(66, 153, 225, 0.1);
}

/* 自我描述 */
.self-content {
    line-height: 1.8;
    color: #e0e0e0;
}

.self-content p {
    margin-bottom: 20px;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
    background-color: rgba(17, 25, 40, 0.8);
    border-radius: 15px;
    border: 1px solid rgba(66, 153, 225, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-content p {
    color: #a0aec0;
    font-size: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .name {
        font-size: 2.5rem;
    }
    
    .title {
        font-size: 1.2rem;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-link {
        padding: 10px 20px;
    }
    
    .section {
        padding: 30px 20px;
    }
    
    .experience-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-chart {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 2rem;
    }
    
    .section {
        padding: 20px 15px;
    }
    
    .experience-item {
        padding-left: 20px;
    }
    
    .project-item {
        padding: 15px;
    }
}