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

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

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

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo a:hover {
    color: #3498db;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #3498db;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #3498db;
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 首页样式 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 6rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.1;
}

.hero-text h2 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #ecf0f1;
    font-weight: 300;
    line-height: 1.2;
}

.hero-text h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #f39c12;
    font-weight: 600;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #bdc3c7;
    line-height: 1.3;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 0;
}

.hero-text .job-market-notice {
    font-size: 1.1rem;
    margin-top: 2.5rem !important;
    margin-bottom: 0;
    color: #f39c12;
    font-weight: 600;
    line-height: 1.2;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: #3498db;
}

.btn-small {
    padding: 4px 10px;
    font-size: 0.75rem;
    background-color: #95a5a6;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-right: 6px;
    margin-top: 5px;
    transition: background-color 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-small:hover {
    background-color: #7f8c8d;
}

.publication-links {
    margin-top: 0.8rem;
    font-size: 0.9rem;
}

.publication-links a {
    color: #3498db;
    text-decoration: none;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.publication-links a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.paper-link::before {
    content: "📄";
    margin-right: 4px;
}

.arxiv-link::before {
    content: "📄";
    margin-right: 4px;
    color: #B31B1B;
}

.profile-img {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255,255,255,0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* 通用部分样式 */
section {
    padding: 80px 0;
}

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

.section-title::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: #3498db;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* 关于我部分 */
.about {
    background-color: #f8f9fa;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text h3 {
    color: #2c3e50;
    margin: 2rem 0 1rem;
    font-size: 1.3rem;
}

.about-text ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.about-text li {
    margin-bottom: 0.5rem;
}

/* 研究部分 */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.research-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.research-icon {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.research-item h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* 发表论文部分 */
.publications {
    background-color: #f8f9fa;
}

.year-group {
    margin-bottom: 3rem;
    position: relative;
}

.year-group:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, #3498db, transparent);
}

.year-title {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
    display: inline-block;
}

/* 预印本部分 */
.preprints {
    background-color: #fff;
}

.preprints .publication-item {
    border-left: 4px solid #e74c3c;
}

/* 经历部分 */
.experience {
    background-color: #fff;
}

.experience-list {
    max-width: 800px;
    margin: 0 auto;
}

.experience-item {
    background: #f8f9fa;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border-left: 4px solid #3498db;
}

.experience-item:hover {
    transform: translateY(-2px);
}

.experience-item h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.company {
    color: #3498db;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.duration {
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.description {
    color: #555;
    line-height: 1.6;
}

.publications-list {
    max-width: 800px;
    margin: 0 auto;
}

.publication-item {
    background: white;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.publication-item:hover {
    transform: translateY(-2px);
}

.publication-item h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.authors {
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.authors strong {
    font-weight: bold;
    color: #2c3e50;
}

.journal {
    color: #95a5a6;
    margin-bottom: 1rem;
}

.publication-item {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border-left: 4px solid #3498db;
    position: relative;
}

.publication-item:hover {
    transform: translateY(-2px);
}

.publication-item h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    line-height: 1.4;
}

.venue-info {
    color: #2c3e50;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
    background-color: #ecf0f1;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    display: inline-block;
    border: 1px solid #bdc3c7;
}

.publication-links {
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid #ecf0f1;
}

/* 联系方式部分 */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.contact-item i {
    color: #3498db;
    font-size: 1.5rem;
    width: 30px;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
}

/* 页脚 */
.footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .profile-img {
        width: 250px;
        height: 250px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-text .job-market-notice {
        margin-top: 2rem !important;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .profile-img {
        width: 200px;
        height: 200px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .publication-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .venue-tag {
        align-self: flex-start;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}
