/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a1a2e;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --text: #333;
    --text-light: #666;
    --bg: #ffffff;
    --bg-alt: #f8f9fa;
    --border: #e5e7eb;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --radius: 8px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 16px;
}

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

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Container ===== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Navbar ===== */
.navbar {
    position: sticky;
    top: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    padding: 16px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary);
}

.nav-brand:hover {
    color: var(--accent);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 28px;
}

.nav-links a {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent);
}

/* ===== Hero Section ===== */
.hero {
    padding: 60px 0 40px;
}

.hero-content {
    display: flex;
    align-items: flex-start;
    gap: 48px;
}

.profile-photo {
    flex-shrink: 0;
}

.profile-photo img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
    box-shadow: var(--shadow);
}

.profile-info h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.profile-info .en-name {
    font-weight: 400;
    font-size: 1.3rem;
    color: var(--text-light);
}

.profile-info .title {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.profile-info .affiliation {
    margin-bottom: 4px;
    line-height: 1.6;
}

.profile-info .advisor {
    margin-bottom: 16px;
    color: var(--text-light);
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.contact-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text);
    transition: all 0.2s;
}

.contact-links a:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(37, 99, 235, 0.04);
}

/* ===== Sections ===== */
.section {
    padding: 48px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.bio-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
}

.placeholder-text {
    color: var(--text-light);
    font-style: italic;
}

/* ===== Timeline (Education) ===== */
.timeline {
    position: relative;
    padding-left: 24px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 24px;
}

.timeline-dot {
    position: absolute;
    left: -22px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg);
}

.timeline-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

.timeline-meta {
    color: var(--text-light);
    font-size: 0.95rem;
}

.timeline-date {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 4px;
}

/* ===== Publications ===== */
.pub-item {
    display: flex;
    gap: 20px;
    margin-bottom: 28px;
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: box-shadow 0.2s;
}

.pub-item:hover {
    box-shadow: var(--shadow);
}

.pub-thumb {
    flex-shrink: 0;
    width: 160px;
    height: 100px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg-alt);
}

.pub-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pub-info {
    flex: 1;
}

.pub-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.pub-authors {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 2px;
}

.pub-venue {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 8px;
}

.pub-links {
    display: flex;
    gap: 12px;
}

.pub-links a {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(37, 99, 235, 0.08);
}

.pub-links a:hover {
    background: rgba(37, 99, 235, 0.15);
}

/* ===== Projects ===== */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.project-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.2s;
}

.project-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.project-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.project-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.project-card a {
    color: inherit;
    text-decoration: none;
}

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px;
    }

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

    .contact-links {
        justify-content: center;
    }

    .nav-links {
        gap: 16px;
    }

    .pub-item {
        flex-direction: column;
    }

    .pub-thumb {
        width: 100%;
        height: 160px;
    }
}

@media (max-width: 480px) {
    .navbar .container {
        flex-direction: column;
        gap: 8px;
    }

    .profile-info h1 {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.2rem;
    }
}
