* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

/* 顶部导航栏样式 - 磨砂胶囊效果 */
.navbar {
    padding: 25px 0 15px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    padding: 12px 24px;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-link {
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(241, 243, 245, 0.7);
    color: #0866ff;
}

.btn-primary {
    background-color: #0866ff;
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 24px;
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(25, 113, 194, 0.2);
}

.btn-primary:hover {
    background-color: #1864ab;
    box-shadow: 0 4px 12px rgba(25, 113, 194, 0.3);
    transform: translateY(-1px);
}

/* 主体内容样式 */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 20px 40px;
}

/* 优化卡片样式 */
.card {
    background-color: #ffffff;
    border: 1px solid #f1f3f5;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    padding: 32px;
    margin-bottom: 28px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #4dabf7, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: #e9ecef;
}

.card:hover::before {
    opacity: 1;
}

.header-card {
    text-align: center;
    background: #fff
}

.name {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
    background: linear-gradient(135deg, #1a1a1a, #495057);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.title {
    font-size: 1.3rem;
    color: #6c757d;
    margin-bottom: 20px;
    font-weight: 500;
    letter-spacing: -0.2px;
}

.date {
    font-size: 0.9rem;
    color: #868e96;
    margin-bottom: 20px;
}

.highlight {
    background: #fff;
    border: 1px solid #f1f3f5;
    padding: 24px;
    border-radius: 12px;
    margin: 30px 0;
    border-left: 4px solid #4dabf7;
    text-align: left;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: #343a40;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f3f5;
    position: relative;
    letter-spacing: -0.3px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #4dabf7, #1971c2);
    border-radius: 2px;
}

.experience-item, .education-item {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.3s ease;
}

.experience-item:hover, .education-item:hover {
    transform: translateX(8px);
    border-bottom-color: #e9ecef;
}

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

.item-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #343a40;
    letter-spacing: -0.2px;
}

.item-subtitle {
    font-size: 1rem;
    color: #1971c2;
    margin-bottom: 8px;
    font-weight: 500;
}

.item-date {
    font-size: 0.9rem;
    color: #868e96;
    margin-bottom: 12px;
    display: inline-block;
    padding: 4px 12px;
    background: #f8f9fa;
    border-radius: 12px;
}

.item-description {
    font-size: 1rem;
    color: #495057;
    line-height: 1.7;
}

.responsibility-list {
    list-style-type: none;
    padding-left: 0;
    margin-top: 10px;
}

.responsibility-list li {
    position: relative;
    padding-left: 0;
    margin-bottom: 8px;
    line-height: 1.6;
}

.education-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.education-detail {
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill {
    background: linear-gradient(135deg, #e7f5ff, #d0ebff);
    color: #1971c2;
    padding: 10px 18px;
    border-radius: 3rem;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid #a5d8ff;
    transition: all 0.3s ease;
}

.skill:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 16px rgba(25, 113, 194, 0.15);
}

.contact-container {
    display: flex;
    gap: 40px;
    margin-top: 16px;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: #495057;
    padding: 12px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.qrcode-section {
    flex: 0 0 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.qrcode-placeholder {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #fff);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.qrcode-text {
    font-size: 0.9rem;
    color: #868e96;
    text-align: center;
}

footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    color: #868e96;
    font-size: 0.9rem;
}

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

/* 移动端适配 */
@media (max-width: 768px) {
    .container {
        padding: 10px 15px 30px;
    }
    
    .name {
        font-size: 2.2rem;
    }
    
    .highlight {
        padding: 20px;
    }
    
    .nav-actions {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px 18px;
    }
    
    .nav-link, .btn-primary {
        font-size: 0.9rem;
        padding: 8px 14px;
    }
    
    .card {
        padding: 24px;
    }
    
    .contact-container {
        flex-direction: column;
        gap: 24px;
    }
    
    .qrcode-section {
        flex: none;
        order: -1;
    }
    
    .skills-container {
        gap: 8px;
    }
    
    .skill {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .education-details {
        flex-direction: column;
        gap: 10px;
    }
}



/*适配移动端悬浮胶囊*/
@media (max-width: 768px) {
    .navbar {
        position: fixed;
        bottom: 0;
        top: auto; /* 取消顶部固定 */
        width: 100%; /* 占满屏幕宽度 */
        z-index: 1000; /* 确保导航栏悬浮在其他内容之上 */
        padding: 10px 0; /* 调整内边距 */
        -webkit-backdrop-filter: blur(12px);
    }

    .nav-container {
        justify-content: space-around; /* 调整导航项的布局 */
    }

    .nav-actions {
        flex-wrap: wrap; /* 防止导航项换行 */
        gap: 8px; /* 调整导航项间距 */
        backdrop-filter: blur(12px); /* 磨砂效果 */
    }

    .nav-link, .btn-primary {
        font-size: 0.9rem; /* 调整字体大小 */
        padding: 8px 12px; /* 调整内边距 */
    }
}