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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 导航栏样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #2c3e50;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
}

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

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #3498db;
}

.language-switch button {
    padding: 0.5rem 1rem;
    margin-left: 0.5rem;
    border: 1px solid #3498db;
    background: transparent;
    color: #3498db;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.language-switch button:hover {
    background: #3498db;
    color: white;
}

/* 首页区域样式 */
.hero {
    min-height: 100vh;
    padding-top: 80px;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, #f5f7fa, #c3cfe2);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    width: auto;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    max-height: 500px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.hero-text p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.hero-text-details {
    margin: 1rem 0 2rem;
}

.hero-text-details p {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

.social-links {
    margin-bottom: 2rem;
}

.social-links a {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-right: 1rem;
    transition: color 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    color: #3498db;
}

.cta-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #2980b9;
}

/* 关于我部分样式 */
.about {
    padding: 5rem 0;
    background-color: #fff;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.bio {
    margin-bottom: 3rem;
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-category {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.skill-category h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    margin: 0.5rem 0;
    color: #666;
    font-size: 1.1rem;
}

.education, .skills {
    margin-bottom: 2rem;
}

.education h3, .skills h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.download-cv {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #2c3e50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.download-cv:hover {
    background-color: #34495e;
}

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

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-sections {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.back-to-top {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.back-to-top:hover {
    color: #3498db;
}

/* 汉堡菜单按钮样式 */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #2c3e50;
    transition: all 0.3s ease;
}

/* 汉堡菜单激活状态 */
.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* 修改响应式设计部分 */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-container {
        padding: 1rem;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #2c3e50;
        padding: 1rem 0;
        flex-direction: column;
        align-items: center;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

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

    .hero-image img {
        max-height: 400px;
        width: 80%;
    }

    .social-links {
        justify-content: center;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .bio {
        padding: 0 1rem;
    }
}

/* 语言切换相关样式 */
[data-lang] {
    display: none;
}

/* 更新页脚样式 */
.footer-sections {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-thanks {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 按钮组样式 */
.button-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.resume-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background-color: transparent;
    color: #3498db;
    border: 2px solid #3498db;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.resume-button:hover {
    background-color: #3498db;
    color: white;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .button-group {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* 学业经历部分样式 */
.education-section {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.education-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.education-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.education-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.school-info {
    margin-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 1.5rem;
}

.school-info h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.degree {
    font-size: 1.2rem;
    color: #34495e;
    margin-bottom: 0.5rem;
}

.graduation-date {
    color: #666;
    font-size: 1.1rem;
}

.academic-info {
    padding-top: 1rem;
}

.gpa {
    font-size: 1.2rem;
    color: #2c3e50;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.courses h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.courses p {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .education-card {
        padding: 1.5rem;
    }

    .school-info h3 {
        font-size: 1.5rem;
    }

    .courses p {
        font-size: 1rem;
    }
}

/* 课程列表样式 */
.course-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.course-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.course-item h5 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.course-item p {
    color: #666;
    line-height: 1.7;
    font-size: 1rem;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .course-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .course-item {
        padding: 1.5rem;
    }
    
    .course-item h5 {
        font-size: 1.2rem;
    }
}

/* 科研与比赛经历部分样式 */
.research-competitions-section {
    padding: 5rem 0;
    background-color: #f0f7fc;
}

.research-competitions-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.research-competitions-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.research-competitions-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1rem;
}

.research-competitions-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 卡片标题部分 */
.research-header, .competition-header {
    margin-bottom: 2.5rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 1.5rem;
}

.research-header h3, .competition-header h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

/* 元信息部分 */
.research-meta, .competition-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    color: #666;
    margin-bottom: 1rem;
}

.research-role, .competition-platform {
    font-weight: 600;
    color: #3498db;
    font-size: 1.1rem;
}

/* 成就列表部分 */
.research-achievement, .competition-achievements {
    padding-top: 0;
}

.research-achievement h4, .competition-achievements h4 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.research-achievement ul, .competition-achievements ul {
    list-style: none;
}

.research-achievement li, .competition-achievements li {
    margin-bottom: 1.5rem;
    padding-left: 1.8rem;
    position: relative;
    line-height: 1.8;
    font-size: 1.05rem;
}

.research-achievement li::before, .competition-achievements li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.4rem;
    top: -0.1rem;
}

/* 高亮部分样式 */
.achievement-highlight {
    background: #f8f9fa;
    padding: 1.8rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 4px solid #3498db;
}

.highlight-text {
    color: #2c3e50;
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .research-competitions-card {
        padding: 1.8rem;
    }

    .research-header h3, .competition-header h3 {
        font-size: 1.5rem;
    }

    .research-meta, .competition-meta {
        gap: 1.5rem;
    }

    .achievement-highlight {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
}

/* 校园经历部分样式 */
.campus-section {
    padding: 5rem 0;
    background-color: #f2f8f5;
}

.campus-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.campus-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.campus-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 0;
}

.campus-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.campus-header {
    margin-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 1.5rem;
}

.campus-header h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.campus-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: #666;
    margin-top: 1rem;
}

.campus-role {
    font-weight: 600;
    color: #3498db;
}

.campus-time {
    color: #666;
}

.campus-achievements ul {
    list-style: none;
}

.campus-achievements li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.campus-achievements li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .campus-content {
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .campus-card {
        padding: 1.5rem;
    }

    .campus-header h3 {
        font-size: 1.5rem;
    }

    .campus-meta {
        gap: 1rem;
    }
}

/* 实习经历部分样式 */
.internship-section {
    padding: 5rem 0;
    background-color: #f6f4fa;
}

.internship-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.internship-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.internship-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

.internship-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.internship-header {
    margin-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 1.5rem;
}

.internship-header h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.internship-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: #666;
    margin-top: 1rem;
}

.internship-role {
    font-weight: 600;
    color: #3498db;
}

.internship-time {
    color: #666;
}

.internship-achievements ul {
    list-style: none;
}

.internship-achievements li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.internship-achievements li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .internship-content {
        padding: 0 1rem;
    }

    .internship-card {
        padding: 1.5rem;
    }

    .internship-header h3 {
        font-size: 1.5rem;
    }

    .internship-meta {
        gap: 1rem;
    }
}

.footer-contact {
    text-align: center;
    margin: 1rem 0;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    margin: 0 1rem;
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #2980b9;
}

.contact-link i {
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .footer-contact {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .contact-link {
        margin: 0.5rem 0;
    }
}

.social-icon {
    width: 24px;
    height: 24px;
    margin-right: 1rem;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}

.contact-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    margin: 0 1rem;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-link:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .social-icon {
        width: 20px;
        height: 20px;
    }
    
    .contact-icon {
        width: 16px;
        height: 16px;
    }
}

/* 汉堡菜单激活时的导航菜单样式 */
.nav-menu.active {
    display: flex;
}

/* 确保在移动端时导航菜单默认隐藏 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
}

/* 设计作品整体布局 */
.design-works {
    padding: 6rem 0 3rem;
    background-color: #fff;
}

.design-works h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

/* 项目容器样式 */
.design-project {
    width: 100%;
    padding: 3rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 项目背景色 */
.design-project:nth-child(1) {
    background-color: #f0f7fc;
}

.design-project:nth-child(2) {
    background-color: #f8f4f9;
}

/* 项目内容布局 */
.project-header,
.project-description,
.design-screens {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

.project-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.project-header h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.project-tools {
    color: #666;
    font-size: 1.1rem;
}

.project-description {
    max-width: 800px;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #666;
}

/* Figma 原型展示 */
.prototype-section {
    width: 100%;
    margin-top: 2rem;
}

.prototype-content-vertical {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.figma-prototype-full {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: white;
}

.figma-prototype-full iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .design-works {
        padding: 4rem 0 2rem;
    }

    .project-header,
    .project-description,
    .design-screens,
    .prototype-content-vertical {
        padding: 0 1rem;
    }

    .project-header h3 {
        font-size: 1.8rem;
    }

    .figma-prototype-full {
        padding-bottom: 150%;
    }
}

/* 海报网格布局 */
.posters-grid {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 3rem;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr;
    gap: 5rem;
    background: linear-gradient(to bottom, #ffffff, #f8f4f9);
    border-radius: 24px;
}

.poster-container {
    width: 100%;
    padding: 2.5rem;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease;
}

.poster-container:hover {
    transform: translateY(-5px);
}

.full-width-poster {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    transition: transform 0.4s ease;
}

.full-width-poster:hover {
    transform: scale(1.02);
}

/* 原型展示部分样式 */
.prototype-description-full {
    width: 100%;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    max-width: 1000px;
    margin: 0 auto;
}

.feature-flows {
    display: grid;
    gap: 2rem;
}

.flow-item {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #3498db;
}

.flow-item h5 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.flow-item p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .posters-grid {
        padding: 2rem 1rem;
        gap: 2rem;
    }

    .poster-container {
        padding: 1.5rem;
    }
} 