/* 主要内容区域 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    gap: 30px;
}

/* 个人信息卡片 */
.profile-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

.basic-info {
    flex: 1;
}

.basic-info h1 {
    font-size: 2em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.role {
    color: #983636;
    font-size: 1.2em;
    margin-bottom: 5px;
}

.major {
    color: #666;
    margin-bottom: 15px;
}

/* 项目说明 */
.project-intro {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.tech-tags span {
    background: #f8f9fa;
    color: #983636;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
}

.feature-list ul {
    list-style: none;
    padding-left: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.feature-list li {
    position: relative;
    padding-left: 25px;
}

.feature-list li::before {
    content: '✓';
    color: #983636;
    position: absolute;
    left: 0;
}

/* 致谢部分 */
.thanks-section {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.thanks-content p {
    color: #666;
    margin: 10px 0;
}

/* 添加项目经历样式 */
.projects-section {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

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

.project-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.project-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: #983636;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-icon i {
    font-size: 24px;
    color: #fff;
}

.project-content {
    flex: 1;
}

.project-content h3 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.2em;
}

.project-desc {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 12px;
    line-height: 1.5;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tech span {
    background: #fff;
    color: #983636;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    border: 1px solid #983636;
}

/* 修改联系方式样式 */
.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: #f8f9fa;
    border-radius: 20px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.contact-item i {
    color: #983636;
    font-size: 1.2em;
}

.contact-item span {
    color: #666;
    font-size: 0.95em;
}

.contact-item:hover {
    background: #983636;
}

.contact-item:hover i,
.contact-item:hover span {
    color: #fff;
}

/* 二维码弹出框样式 */
.qr-popup {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.qr-popup img {
    width: 150px;
    height: 150px;
    border-radius: 5px;
}

.qr-popup p {
    text-align: center;
    margin-top: 10px;
    color: #666;
    font-size: 0.9em;
}

.contact-item:hover .qr-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* 添加箭头指示 */
.qr-popup::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #fff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-links {
        justify-content: center;
    }
    
    .avatar {
        width: 120px;
        height: 120px;
    }
    
    .feature-list ul {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        flex-direction: row;
    }
    
    .contact-info {
        justify-content: center;
    }
    
    .qr-popup {
        left: 50%;
        transform: translateX(-50%) translateY(10px);
    }
    
    .qr-popup img {
        width: 120px;
        height: 120px;
    }
} 