:root {
    --primary-bg: #FFFFFF;
    --accent-color: #666666;
    --text-color: #000000;
    --white: #FFFFFF;
    --shadow-color: rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background-color: #FFFFFF;
    color: #000000;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #FFFFFF;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: background-color 0.3s;
}

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

.nav-brand {
    font-size: 24px;
    color: #000000;
    font-family: 'Montserrat', sans-serif;
}

.nav-links a {
    color: #000000;
    text-decoration: none;
    margin-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
    padding: 0.5rem 0;
}

.nav-links {
    display: flex;
    align-items: center;
}

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

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

/* 个人介绍（替代原照片网格） */
.photo-gallery {
    padding: 120px 0 60px;
    background-color: #F5F5F5;
}

.intro-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.intro-avatar {
    width: 192px;
    height: 192px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 3rem;
}

.intro-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    color: #333333;
    margin-bottom: 0.5rem;
}

.intro-english-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    color: #333333;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.intro-dream {
    font-size: 1.2rem;
    color: #555555;
    margin-bottom: 0.5rem;
}

.intro-tagline {
    font-size: 1.1rem;
    color: #555555;
}

.gallery-content {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 2rem;
}

.gallery-content h1 {
    font-size: 36px;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.gallery-content p {
    color: var(--accent-color);
    font-size: 1.1rem;
}

/* 移除不再使用的照片网格相关样式以避免干扰 */
/* .gallery-container, .gallery-grid, .gallery-item, .gallery-item.large, .gallery-item img { }
   保留为空占位，若后续需要可恢复 */

@media (max-width: 991px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 180px);
        gap: 12px;
    }
    
    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 2;
    }
}

@media (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 160px);
        gap: 10px;
    }
    
    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    .gallery-content h1 {
        font-size: 28px;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-brand {
        font-size: 20px;
    }
}

/* 兴趣爱好部分 */
.passions {
    padding: 120px 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.passions h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 3rem;
    position: relative;
}

.passions h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #666666;
}

.passions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* 兴趣爱好卡片在深色背景下的适配 */
.passion-card {
    background-color: #F8F9FA;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    text-decoration: none;
    color: #000000;
    display: block;
}

.passion-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px var(--shadow-color);
    color: #000000;
}

.passion-card i {
    font-size: 2.5rem;
    color: #666666;
    margin-bottom: 1rem;
    transition: transform 0.3s;
}

.passion-card .fa-coffee {
    color: #C7A27C;
}

.passion-card .fa-utensils {
    color: #FFD700;
}

.passion-card:hover i {
    transform: scale(1.05);
}

.passion-card h3 {
    font-size: 20px;
    color: #000000;
    margin-bottom: 1rem;
}

/* 社交媒体链接 */
.social-links {
    background-color: #F8F9FA;
    padding: 2rem;
    text-align: center;
}

.social-links p {
    font-size: 18px;
    margin-bottom: 1.5rem;
    color: #000000;
    font-weight: bold;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.icon-wrapper {
    position: relative;
    cursor: pointer;
}

.icon-wrapper i {
    font-size: 2rem;
    transition: transform 0.3s, color 0.3s;
}

/* 社交媒体链接在深色背景下 */
/* 微信图标颜色 */
.icon-wrapper .fa-weixin {
    color: #07C160;
}

/* 邮箱图标颜色 */
.icon-wrapper .fa-envelope {
    color: #4DA3FF;
}

.icon-wrapper:hover i {
    transform: scale(1.1);
    opacity: 0.8;
}

.contact-info {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #FFFFFF;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    font-size: 0.9rem;
    color: #000000;
    margin-bottom: 10px;
}

.contact-info::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #FFFFFF transparent transparent transparent;
}

.icon-wrapper:hover .contact-info {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.icon-wrapper a {
    color: inherit;
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 991px) {
    .passions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .passions-grid {
        grid-template-columns: 1fr;
    }
    
    .passions {
        padding: 80px 1rem;
    }
    
    .social-icons {
        gap: 20px;
    }
}

/* 实习经历部分 */
.internships {
    padding: 120px 2rem;
    background-color: #FFFFFF;
}

.internship-card-content {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.internship-card-content:hover {
    transform: translateY(-2px);
}

.internships h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 3rem;
    position: relative;
    color: #000000;
}

.internships h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #666666;
}

.internships-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #FFFFFF;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
}

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

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

.modal h2 {
    color: #000000;
    margin-bottom: 1rem;
    font-size: 24px;
}

.modal-subtitle {
    color: #666666;
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 14px;
}

.modal-body {
    color: #333333;
    line-height: 1.6;
}

.modal-body h3 {
    color: #000000;
    margin: 1.5rem 0 0.5rem 0;
    font-size: 18px;
}

.modal-body h4 {
    color: #000000;
    margin: 1rem 0 0.5rem 0;
    font-size: 16px;
    font-weight: 600;
}

.modal-body p {
    margin-bottom: 1rem;
}

.modal-body ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.modal-body li {
    margin-bottom: 0.8rem;
}

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

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

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 1.5rem;
    }
}

.internship-card {
    background-color: #F8F9FA;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

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

.company-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
}

.internship-card:hover .company-logo {
    transform: scale(1.05);
}

.baidu .company-logo {
    background-image: url('../images/baidu-logo.jpg');
    background-color: transparent;
}

.kuaishou .company-logo {
    background-image: url('../images/kuaishou-logo.jpg');
    background-color: transparent;
    background-size: 80%;
}

.xiaomi .company-logo {
    background-image: url('../images/xiaomi-logo.jpg');
    background-color: transparent;
}

.meituan .company-logo {
    background-image: url('../images/美团-logo.jpg');
    background-color: transparent;
    background-size: 83%;
}

.internship-card h3 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 1.5rem;
    color: #000000;
}

.internship-content {
    text-align: left;
}

.position {
    font-weight: bold;
    color: #666666;
    margin-bottom: 0.5rem;
}

.duration {
    color: #888888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.review {
    font-style: italic;
    color: #555555;
    line-height: 1.4;
    font-size: 0.95rem;
    position: relative;
    padding-left: 1rem;
    border-left: 2px solid #CCCCCC;
}

@media (max-width: 991px) {
    .internships-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .internships-grid {
        grid-template-columns: 1fr;
    }
    
    .internship-card {
        padding: 1.5rem;
    }
}

/* 教育经历部分 */
.education {
    padding: 120px 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #FFFFFF;
}

.education h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 3rem;
    position: relative;
    color: #000000;
}

.education h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #666666;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* 实习与教育部分适配深色 */
.education-card {
    background-color: #F5F5F5;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

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

.education-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
}

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

.bupt-logo {
    background-image: url('../images/bupt-logo.jpeg');
    background-color: transparent;
}

.cuhk-logo {
    background-image: url('../images/cuhk-logo.jpeg');
    background-color: transparent;
}

.education-content h3 {
    font-size: 1.5rem;
    color: #000000;
    margin-bottom: 1rem;
}

.education-content .major {
    color: #555555;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.education-content .degree {
    color: #000000;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.education-content .year {
    color: #AAAAAA;
    font-size: 0.9rem;
}

@media (max-width: 991px) {
    .education-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .education-grid {
        grid-template-columns: 1fr;
    }
    
    .education {
        padding: 80px 1rem;
    }
} 