/* 学术风格个人博客样式 */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #fff;
    --bg-light: #f8f9fa;
    --border-color: #e1e4e8;
    --max-width: 900px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* Header */
.site-header {
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.9rem;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-color);
    background: var(--bg-light);
}

.nav-link.active {
    color: var(--accent-color);
    font-weight: 500;
}

/* Main Content */
.main-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.5rem 2rem;
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

/* Photo Section */
.photo-section {
    text-align: center;
    margin-bottom: 2rem;
}

.photo-container {
    display: inline-block;
}

.profile-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.name {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    letter-spacing: 2px;
}

.title {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.intro {
    font-size: 1rem;
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto 1rem;
    line-height: 1.6;
}

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

.btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--accent-color);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

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

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-outline:hover {
    background: var(--accent-color);
    color: #fff;
}

/* Sections */
section {
    margin-bottom: 3rem;
}

h2 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

h3 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin: 1.5rem 0 1rem;
}

/* Research Interests */
.interests-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.interests-list li {
    padding: 1rem 1.5rem;
    background: var(--bg-light);
    border-radius: 4px;
    border-left: 3px solid var(--accent-color);
}

/* News */
.news-list {
    list-style: none;
}

.news-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
}

.date {
    color: var(--text-light);
    min-width: 50px;
    font-size: 0.9rem;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-light);
    font-size: 1rem;
    letter-spacing: 1px;
}

/* Papers */
.papers-section {
    margin-bottom: 3rem;
}

.paper-year-group {
    margin-bottom: 0.75rem;
}

.paper-year-header {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-color);
    padding: 0.2rem 0.75rem;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(52, 152, 219, 0.05));
    border-radius: 15px;
    margin-bottom: 0.5rem;
    border-left: 2px solid var(--accent-color);
}

.paper-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.paper-item {
    display: flex;
    gap: 0.4rem;
    padding: 0.2rem 0.4rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
    align-items: center;
}

.paper-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-color);
    border-radius: 4px 0 0 4px;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.paper-item:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    border-color: var(--accent-color);
}

.paper-item:hover::before {
    opacity: 1;
}

.paper-year {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-color);
    min-width: 32px;
    padding-top: 0;
}

.paper-content {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.1rem;
    line-height: 1.3;
    white-space: nowrap;
}

.paper-content .paper-title::after {
    content: "—";
    margin: 0 0.4rem;
    color: var(--text-light);
}

.paper-content .paper-authors::after {
    content: "（";
    color: var(--text-light);
}

.paper-content .paper-venue::before {
    content: "";
}

.paper-content .paper-venue::after {
    content: "）";
    color: var(--text-light);
}

.paper-title {
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 0;
    line-height: 1.4;
    font-weight: 500;
    display: inline;
}

.paper-authors {
    font-size: 0.75rem;
    color: var(--text-color);
    margin-bottom: 0;
    display: inline;
}

.paper-venue {
    display: inline;
    font-size: 0.7rem;
    color: #7f8c8d;
    background: #f8f9fa;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    margin-left: 0.5rem;
    white-space: nowrap;
}

.paper-links {
    display: inline;
    margin-left: 0.35rem;
}

.paper-link {
    font-size: 0.7rem;
    color: var(--accent-color);
    text-decoration: none;
    padding: 0.1rem 0.35rem;
    border: 1px solid var(--accent-color);
    border-radius: 12px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.paper-link:hover {
    background: var(--accent-color);
    color: #fff;
}

/* About */
.about-section {
    margin-top: 2rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    align-items: start;
}

.about-photo {
    position: sticky;
    top: 100px;
}

.photo-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.about-info h2 {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 1rem;
}

.about-info p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.edu-list, .research-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.edu-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.edu-list .degree {
    font-weight: 500;
    min-width: 50px;
}

.edu-list .school {
    color: var(--primary-color);
}

.edu-list .major {
    color: var(--text-light);
    flex: 1;
}

.edu-list .time {
    color: var(--text-light);
    font-size: 0.9rem;
}

.research-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.research-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.95rem;
}

.contact-link:hover {
    text-decoration: underline;
}

.contact-link .icon {
    font-size: 1rem;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Profile Card Layout */
.profile-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    align-items: start;
}

.profile-left {
    text-align: center;
    position: sticky;
    top: 100px;
}

.profile-left .photo-container {
    margin-bottom: 1rem;
}

.profile-left .profile-photo {
    width: 140px;
    height: 140px;
}

.profile-name h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    letter-spacing: 2px;
}

.profile-name .title {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

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

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.8rem;
    padding: 0.35rem 0.7rem;
    background: var(--bg-light);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.contact-item:hover {
    background: var(--accent-color);
    color: #fff;
}

.profile-right {
    padding-top: 0.5rem;
}

.profile-right h2 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid var(--border-color);
}

.intro-section {
    margin-bottom: 1.25rem;
}

.intro-section p {
    line-height: 1.7;
    color: var(--text-color);
    font-size: 0.95rem;
}

.edu-section {
    margin-bottom: 1.25rem;
}

.edu-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.edu-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.6rem 0.8rem;
    background: var(--bg-light);
    border-radius: 4px;
    border-left: 3px solid var(--accent-color);
}

.edu-item .degree {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.85rem;
}

.edu-item .school {
    color: var(--text-color);
    font-size: 0.85rem;
}

.edu-item .time {
    color: var(--text-light);
    font-size: 0.8rem;
}

.research-section {
    margin-bottom: 1.25rem;
}

.research-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.3rem 0.7rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.profile-right .quick-links {
    justify-content: flex-start;
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .profile-left {
        position: static;
    }

    .name {
        font-size: 1.8rem;
    }

    .paper-item {
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.4rem 0.6rem;
    }

    .paper-content {
        flex-direction: column;
    }

    .paper-content .paper-title::after {
        content: "";
    }

    .paper-content .paper-authors::after {
        content: "";
    }

    .paper-content .paper-venue::before {
        content: "（";
    }

    .paper-content .paper-venue::after {
        content: "）";
    }

    .paper-links {
        display: block;
        margin-left: 0;
        margin-top: 0.25rem;
    }

    .nav {
        gap: 1rem;
    }

    .main-content {
        padding: 1rem 1.25rem;
    }

    .profile-left .profile-photo {
        width: 120px;
        height: 120px;
    }
}
