/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a365d;
    --secondary-color: #2c5282;
    --accent-color: #3182ce;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-light: #718096;
    --background: #ffffff;
    --background-light: #f7fafc;
    --border-color: #e2e8f0;
    --max-width: 900px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

em {
    font-family: 'Crimson Text', Georgia, serif;
    font-style: italic;
    font-size: 1.05em;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
}

.header-content {
    animation: fadeInUp 0.6s ease-out;
}

.name {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 2.75rem;
    font-weight: 500;
    letter-spacing: -0.5px;
}

.chinese-name {
    font-weight: 300;
    font-size: 0.85em;
    opacity: 0.9;
}

.title {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.95);
}

.affiliation {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
}

/* Navigation */
.nav {
    background: var(--background);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 1.25rem 0;
    gap: 2rem;
}

.nav-list a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-list a:hover {
    color: var(--primary-color);
    background: var(--background-light);
    text-decoration: none;
}

/* Main Content */
.main {
    padding: 4rem 0;
    min-height: 60vh;
}

.section {
    margin-bottom: 4rem;
    animation: fadeIn 0.6s ease-out;
}

.section-title {
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.75rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.content {
    max-width: 100%;
}

/* Interest List */
.interest-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.interest-list li {
    padding: 0.75rem 1rem;
    background: var(--background-light);
    border-left: 3px solid var(--accent-color);
    border-radius: 4px;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

.interest-list li:hover {
    transform: translateX(5px);
}

/* Publication Note */
.publication-note {
    font-style: italic;
    color: var(--text-secondary);
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

/* Tool Card */
.tool-card {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.2s ease;
}

.tool-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tool-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
}

.tool-card p {
    margin-bottom: 0;
    color: var(--text-secondary);
}

/* Contact Info */
.contact-info {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.contact-item {
    padding: 1.25rem;
    background: var(--background-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.contact-item strong {
    color: var(--primary-color);
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: var(--background-light);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

.footer p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .name {
        font-size: 2rem;
    }
    
    .title {
        font-size: 1.1rem;
    }
    
    .affiliation {
        font-size: 0.9rem;
    }
    
    .nav-list {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .nav-list a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .section {
        margin-bottom: 3rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .interest-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 3rem 0;
    }
    
    .name {
        font-size: 1.75rem;
    }
    
    .chinese-name {
        display: block;
        margin-top: 0.25rem;
    }
    
    .main {
        padding: 2rem 0;
    }
    
    .nav-list {
        gap: 0.5rem;
    }
    
    .nav-list a {
        padding: 0.4rem 0.6rem;
    }
}