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

/* 懒加载图片样式 */
.lazy-image {
    position: relative;
    background-color: #f0f0f0;
    background-image: linear-gradient(45deg, #e0e0e0 25%, transparent 25%, transparent 75%, #e0e0e0 75%, #e0e0e0), linear-gradient(45deg, #e0e0e0 25%, transparent 25%, transparent 75%, #e0e0e0 75%, #e0e0e0);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    width: 100%;
    height: auto;
    display: block;
    overflow: hidden;
    transition: opacity 0.3s ease;
}

/* 浮动按钮样式 */
.floating-btn {
    position: fixed;
    width: 50px;
    height: 50px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 回到顶部按钮位置 */
#back-to-top {
    right: 30px;
    bottom: 160px;
}

/* 打印按钮位置 */
#floating-print-btn {
    right: 30px;
    bottom: 90px;
}

.floating-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    background-color: #0056b3;
}

.floating-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
}

.floating-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.floating-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.floating-btn.loading i {
    display: none;
}

.lazy-image::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #ccc;
    border-top-color: #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

.lazy-image.loaded {
    background-color: transparent;
    background-image: none;
}

.lazy-image.loaded::after {
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: #333333;
    margin: 0;
    letter-spacing: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 40px;
}

.nav-links a {
    text-decoration: none;
    color: #666666;
    font-weight: 400;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px 0;
}

.nav-links a:hover {
    color: #007bff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #007bff;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* 英雄区样式 */
.hero {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    padding: 100px 0 60px;
    margin-top: 70px;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    min-width: 300px;
    margin-right: 40px;
}

.hero-text h2 {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 10px;
    opacity: 0.9;
}

.hero-text h3 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 500px;
}

.social-links {
    margin-bottom: 30px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #fff;
    color: #007bff;
    transform: translateY(-2px);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #fff;
    color: #007bff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.hero-image {
    flex: 0 0 200px;
}

.profile-pic {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background-color: #ffffff;
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* section 通用样式 */
section {
    padding: 80px 0;
    background-color: #fff;
}

section:nth-child(even) {
    background-color: #f8f9fa;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title span {
    font-size: 32px;
    font-weight: 700;
    color: #333333;
    padding: 0 20px;
    background-color: #fff;
    position: relative;
    z-index: 1;
}

.section-title::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20%;
    right: 20%;
    height: 1px;
    background-color: #e0e0e0;
    z-index: 0;
}

/* 个人信息样式 */
.about-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.about-info {
    flex: 1;
    min-width: 300px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.info-item i {
    font-size: 18px;
    color: #007bff;
    margin-right: 15px;
    margin-top: 5px;
    width: 20px;
    text-align: center;
}

.info-item h4 {
    font-size: 14px;
    font-weight: 600;
    color: #666666;
    margin-bottom: 3px;
}

.info-item p {
    font-size: 14px;
    color: #333333;
    margin: 0;
}

.about-bio {
    flex: 1;
    min-width: 300px;
}

.about-bio h3 {
    font-size: 22px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 15px;
}

.about-bio p {
    font-size: 15px;
    line-height: 1.7;
    color: #666666;
    margin-bottom: 15px;
}

/* 认证信息样式 */
.about-certifications {
    flex: 1;
    min-width: 300px;
}

.about-certifications h3 {
    font-size: 22px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 15px;
}

.certification-item {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.certification-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.certification-date {
    font-size: 14px;
    font-weight: 600;
    color: #007bff;
    margin-bottom: 8px;
}

.certification-title {
    font-size: 16px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 6px;
}

.certification-level {
    font-size: 15px;
    color: #555555;
    margin-bottom: 6px;
}

.certification-number {
    font-size: 14px;
    color: #666666;
    margin-bottom: 4px;
}

.certification-issuer {
    font-size: 14px;
    color: #666666;
    margin-bottom: 0;
}

/* 表格样式 */
.honors-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.honors-table tr {
    border-bottom: 1px solid #e9ecef;
}

.honors-table tr:last-child {
    border-bottom: none;
}

.honors-table td {
    padding: 12px 15px;
    font-size: 14px;
    color: #333333;
}

.honors-table tr:first-child td {
    font-weight: 700;
    background-color: #e9ecef;
    color: #495057;
}

.honors-table tr:hover {
    background-color: #e9ecef;
}

/* 时间线样式 */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: #e0e0e0;
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding: 0 40px 40px 0;
    position: relative;
    width: 50%;
    right: -1px;
}

.timeline-item:nth-child(odd) {
    justify-content: flex-start;
    padding: 0 0 40px 40px;
    left: 50%;
}

.timeline-icon {
    position: absolute;
    top: 0;
    right: -12px;
    width: 25px;
    height: 25px;
    background-color: #667eea;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 12px;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-icon {
    left: -12px;
}

.timeline-content {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.timeline-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.timeline-content .date {
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 10px;
}

.timeline-content .degree {
    font-size: 16px;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

/* 公司信息样式 */
.timeline-content .company-info {
    margin: 15px 0;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.timeline-content .company-description {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

.timeline-content .company-image {
    text-align: center;
    margin-top: 10px;
}

.timeline-content .company-image img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.timeline-content ul {
    list-style: none;
    padding-left: 0;
}

.timeline-content li {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.timeline-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* 技能样式 */
.skills-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.skills-category {
    flex: 1;
    min-width: 300px;
    background-color: #f5f5f5;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.skills-category h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.skill-item {
    margin-bottom: 20px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

.language-item {
    margin-bottom: 20px;
}

.language-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

.language-stars {
    color: #f39c12;
    font-size: 16px;
}

/* 作品集样式 */
/* 作品详情模态框 */
.portfolio-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow-y: auto;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 80%;
    max-width: 900px;
    position: relative;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 20px;
}

.close-btn:hover {
    color: #000;
}

/* 浮动关闭按钮 */
.floating-close-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.floating-close-btn.visible {
    opacity: 1;
    visibility: visible;
}

.floating-close-btn:hover {
    background-color: #764ba2;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .floating-close-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .floating-close-btn {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.description {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.thumbnail-item {
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.thumbnail-item:hover {
    transform: translateY(-5px);
}

.thumbnail-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail-item:hover .thumbnail-img {
    transform: scale(1.1);
}

/* 项目详情按钮样式 */
.project-details-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #667eea;
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.project-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    background-color: #764ba2;
}

/* 项目详情模态框 */
.project-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.project-modal .modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 40px;
    border-radius: 10px;
    width: 85%;
    max-width: 1000px;
    position: relative;
    animation: slideIn 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.project-modal .modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #667eea;
}

.project-item {
    margin-bottom: 40px;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.project-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.project-item h4 {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.project-meta {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.project-meta p {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}

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

.project-section h5 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 4px solid #667eea;
}

.project-section p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 10px;
}

.project-section ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 15px;
}

.project-section ul li {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.project-section ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.challenge-item {
    margin-bottom: 15px;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.challenge-item h6 {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    color: #667eea;
}

.challenge-item p {
    font-size: 13px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 5px;
}

/* 大图预览模态框 */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-close {
    color: #fff;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: -40px;
    right: -40px;
}

#lightbox-img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
    
    .thumbnail-gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .lightbox-close {
        top: -30px;
        right: 0;
    }
    
    /* 浮动按钮响应式 */
    .floating-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    #back-to-top {
        right: 20px;
        bottom: 140px;
    }
    
    #floating-print-btn {
        right: 20px;
        bottom: 80px;
    }
    
    /* 项目详情模态框响应式 */
    .project-modal .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 25px;
    }
    
    .project-modal .modal-title {
        font-size: 24px;
        padding-bottom: 10px;
    }
    
    .project-item {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .project-item h4 {
        font-size: 18px;
    }
    
    .project-section h5 {
        font-size: 15px;
    }
    
    .project-section p,
    .project-section ul li {
        font-size: 13px;
    }
    
    .challenge-item {
        padding: 12px;
    }
    
    .challenge-item h6 {
        font-size: 13px;
    }
    
    .challenge-item p {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .project-modal .modal-content {
        width: 98%;
        margin: 15% auto;
        padding: 20px;
    }
    
    .project-modal .modal-title {
        font-size: 20px;
    }
    
    .project-item {
        padding: 15px;
    }
    
    .project-item h4 {
        font-size: 16px;
    }
    
    .project-meta {
        padding: 12px;
    }
    
    .project-meta p {
        font-size: 13px;
    }
    
    .project-details-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.portfolio-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    max-width: 100%;
    display: block;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.portfolio-overlay p {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.portfolio-link {
    display: inline-block;
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-align: center;
    line-height: 35px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.portfolio-link:hover {
    background-color: #fff;
    color: #667eea;
}

/* 页脚样式 */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-info,
.footer-contact,
.footer-links {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

.footer-info h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-info p {
    color: #bdc3c7;
    margin-bottom: 20px;
}

.footer-social a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-align: center;
    line-height: 35px;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: #667eea;
    transform: translateY(-2px);
}

.footer-contact h4,
.footer-links h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.footer-contact p {
    color: #bdc3c7;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: #667eea;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #667eea;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background-color: #fff;
        width: 200px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 15px 20px;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        margin-right: 0;
        margin-bottom: 40px;
    }

    .about-content {
        flex-direction: column;
    }

    .about-info {
        margin-right: 0;
        margin-bottom: 40px;
    }

    .timeline::before {
        left: 25px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd) {
        width: 100%;
        left: 0;
        padding: 0 0 40px 60px;
        justify-content: flex-start;
    }

    .timeline-icon,
    .timeline-item:nth-child(odd) .timeline-icon {
        left: 13px;
        right: auto;
    }

    .skills-content {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .hero-text h3 {
        font-size: 36px;
    }

    .section-title span {
        font-size: 28px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    /* 表格响应式设计 */
    .honors-table {
        font-size: 12px;
    }
    
    .honors-table td {
        padding: 8px 10px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-text h2 {
        font-size: 24px;
    }

    .hero-text h3 {
        font-size: 28px;
    }

    .profile-pic {
        width: 200px;
        height: 200px;
    }

    section {
        padding: 60px 0;
    }

    .portfolio-filter {
        text-align: left;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
    }

    .filter-btn {
        margin-right: 10px;
    }
}

/* 滚动动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
