:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --sidebar-width: 300px;
    --star-color: rgba(255, 255, 255, 0.8);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #1a1a2e, #16213e);
    z-index: -1;
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.star {
    position: absolute;
    background-color: var(--star-color);
    border-radius: 50%;
    animation: twinkle 4s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background-color: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 2px 0 4px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
}

main {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem;
}

.profile {
    text-align: center;
    margin-bottom: 2rem;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--white);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.title {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

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

.social-link {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--accent-color);
}

.navbar {
    margin-top: 2rem;
}

.navbar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.navbar a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    padding: 0.8rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: block;
}

.navbar a:hover {
    background-color: var(--light-gray);
}

.navbar .active a {
    color: var(--accent-color);
    background-color: var(--light-gray);
    border-left: 3px solid var(--accent-color);
}

section {
    display: none;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

section.active-section {
    display: block;
}

.publications-preview {
    margin-top: 1rem;
}

.publication-card {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

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

.publication-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.publication-card .authors {
    color: var(--secondary-color);
    font-style: italic;
}

.publication-card .venue {
    color: var(--accent-color);
    font-weight: 500;
}

.publication-card .year {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
        padding: 1rem;
    }

    main {
        margin-left: 0;
        padding: 1rem;
    }

    .navbar ul {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .navbar .active a {
        border-left: none;
        border-bottom: 3px solid var(--accent-color);
    }

    .avatar {
        width: 120px;
        height: 120px;
    }
}

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

.about-content h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2rem;
}

.about-text {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-color);
}

.about-text p:first-child {
    font-size: 1.2rem;
    font-weight: 500;
}

.about-text .ps {
    font-style: italic;
    color: var(--secondary-color);
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .about-content {
        padding: 1rem;
    }
    
    .about-text {
        padding: 1.5rem;
    }
}

/* 项目展示样式 */
.works-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.works-container h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2rem;
}

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

.work-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.work-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

.work-card:hover .work-image img {
    transform: scale(1.05);
}

.work-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.work-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.work-description {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex: 1;
}

.work-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    margin-top: auto;
}

.work-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.work-link:hover {
    color: var(--primary-color);
}

.work-link:hover i {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .works-container {
        padding: 1rem;
    }
    
    .works-grid {
        grid-template-columns: 1fr;
    }
    
    .work-image {
        height: 180px;
    }
}

.blog-posts {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.blog-posts h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.blog-posts h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.post-item:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    background-color: var(--white);
}

.post-content {
    flex: 1;
}

.post-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.post-item:hover .post-content h3 {
    color: var(--accent-color);
}

.post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.post-date {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.post-date::before {
    content: '\f133';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.post-category {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background-color: var(--light-gray);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.post-category::before {
    content: '\f02b';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.post-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.post-item:hover i {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .blog-posts {
        padding: 1rem;
    }
    
    .post-item {
        padding: 1.2rem;
    }
    
    .post-content h3 {
        font-size: 1.1rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pagination-btn:hover:not(:disabled) {
    background-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    color: var(--accent-color);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.page-number:hover {
    background-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.page-number.active {
    background-color: var(--accent-color);
    color: var(--white);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.page-number.active:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.page-ellipsis {
    color: var(--secondary-color);
    padding: 0 0.5rem;
}

@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .page-numbers {
        order: 1;
        width: 100%;
        justify-content: center;
        margin: 0.5rem 0;
    }
    
    .pagination-btn {
        order: 2;
    }
}

/* 首页欢迎内容样式 */
.home-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.welcome-text {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-top: 2rem;
}

.welcome-text p {
    color: var(--secondary-color);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.welcome-text p:last-child {
    margin-bottom: 0;
}

/* 竖向时间轴样式 */
.timeline-container {
    max-width: 800px;
    margin: 3rem auto;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.timeline-title {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}

.timeline-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--accent-color);
}

.vertical-timeline {
    position: relative;
    padding-left: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.vertical-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-color), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
}

.timeline-date {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.timeline-content {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 1.2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.timeline-content h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.timeline-content p {
    color: var(--secondary-color);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .home-content {
        padding: 1rem;
    }
    
    .welcome-text {
        padding: 1.5rem;
    }
    
    .welcome-text p {
        font-size: 1rem;
    }

    .timeline-container {
        padding: 1.5rem;
        margin: 2rem auto;
    }

    .timeline-item {
        padding-left: 1.5rem;
    }

    .vertical-timeline {
        padding-left: 1.5rem;
    }
} 