@font-face {
  font-family: 'Crimson Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/crimsonpro-normal-400.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Crimson Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/crimsonpro-normal-400.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Crimson Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/crimsonpro-normal-400.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ebgaramond-italic-400.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/ebgaramond-italic-400.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("assets/fonts/sourcesans3-normal-300.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/sourcesans3-normal-300.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/sourcesans3-normal-300.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/sourcesans3-normal-300.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Original homepage styles by Shanshan Luo, reused with permission. */

:root {
    --primary: #3d6a99;
    --primary-light: #4a7eb3;
    --accent: #c05621;
    --bg: #fafafa;
    --bg-section: #ffffff;
    --text: #2d3748;
    --text-light: #718096;
    --border: #e2e8f0;
    --nav-height: 64px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

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

nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-height);
    background: var(--primary);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links { display: flex; gap: 8px; }

.nav-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.97rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.nav-links a.active {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

main { padding-top: var(--nav-height); }

.hero {
    background: linear-gradient(135deg, #3d6a99 0%, #4a7eb3 100%);
    color: #fff;
    padding: 60px 24px 80px;
}

.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 70px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 80px;
}

.hero-text { flex: 0 0 580px; }

.hero-text h1 {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.18rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.hero-links a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.97rem;
    transition: color 0.2s;
}

.hero-links a:hover { color: #fff; text-decoration: underline; }

.hero-info {
    font-size: 0.97rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.8;
}

.hero-info strong { color: #fff; }
.hero-photo { flex-shrink: 0; }

.hero-photo img {
    width: 192px;
    height: 240px;
    object-fit: cover;
    border-radius: 12px;
    border: 4px solid rgba(255,255,255,0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

section { padding: 60px 24px; }
section:nth-child(even) { background: var(--bg-section); }

.section-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 70px;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--primary);
}

.section-header h2 {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1.85rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.biography-content {
    font-size: 1.07rem;
    line-height: 1.9;
    color: var(--text);
}

.biography-content a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
}

.biography-content a:hover { text-decoration: underline; }

/* ============ News ============ */
.news-intro {
    font-size: 0.97rem;
    color: var(--text-light);
    margin-bottom: 18px;
    font-style: italic;
}

.news-scroll {
    max-height: 140px;
    overflow-y: auto;
    padding: 4px 24px 4px 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) transparent;
}

.news-scroll::-webkit-scrollbar { width: 6px; }
.news-scroll::-webkit-scrollbar-track { background: transparent; }
.news-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 3px;
    opacity: 0.5;
}

.news-list {
    list-style: none;
    border-left: 2px solid var(--border);
    padding-left: 24px;
}

.news-list li {
    padding: 12px 0;
    position: relative;
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--text);
}

.news-list li + li {
    border-top: 1px dashed var(--border);
}

.news-list li::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 22px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.6;
    border: 2px solid var(--bg-section);
    box-sizing: content-box;
}

.news-date {
    font-weight: 600;
    color: var(--primary);
    margin-right: 4px;
}

.news-list li a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
}

.news-list li a:hover { text-decoration: underline; }

/* ============ Research ============ */
.research-area {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.research-intro {
    font-size: 1.07rem;
    line-height: 1.9;
    margin-bottom: 24px;
}

.research-topics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.research-topic {
    background: var(--bg);
    padding: 20px 24px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.research-topic h4 {
    color: var(--primary);
    font-size: 1.02rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.research-topic p {
    color: var(--text-light);
    font-size: 0.97rem;
    line-height: 1.6;
}

.pub-list {
    list-style: none;
    counter-reset: pub-counter;
}

.pub-list li {
    counter-increment: pub-counter;
    padding: 20px 0 20px 48px;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.pub-list li:last-child { border-bottom: none; }

.pub-list li::before {
    content: counter(pub-counter);
    position: absolute;
    left: 0; top: 20px;
    width: 32px; height: 32px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.87rem;
    font-weight: 600;
}

.pub-list li p { margin: 0; line-height: 1.75; }

.pub-list li a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
}

.pub-list li a:hover { text-decoration: underline; }
.pub-list li i { color: var(--text-light); }

.pub-highlight {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.78rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: 600;
    font-style: normal;
}

.teaching-list { list-style: none; }

.teaching-list li {
    padding: 16px 24px;
    background: var(--bg);
    border-radius: 8px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.teaching-course { font-weight: 600; color: var(--primary); }
.teaching-time { color: var(--text-light); font-size: 0.92rem; }

footer {
    background: var(--bg);
    padding: 56px 24px 48px;
    text-align: center;
}

.footer-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    max-width: 600px;
    margin: 0 auto;
}

.footer-ornament::before,
.footer-ornament::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary) 40%, var(--primary) 60%, transparent);
    opacity: 0.35;
}

.footer-ornament span {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-light);
    letter-spacing: 1.5px;
    white-space: nowrap;
}

.footer-diamond {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 8px;
}

.footer-diamond span {
    width: 5px; height: 5px;
    background: var(--primary);
    opacity: 0.3;
    transform: rotate(45deg);
}

.footer-diamond span:nth-child(2) { opacity: 0.5; }

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0; right: 0;
        background: var(--primary);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
    }

    .nav-links.active { display: flex; }
    .mobile-menu-btn { display: block; }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        padding: 0 16px;
    }

    .hero-text h1 { font-size: 2rem; }
    .hero-links { justify-content: center; }
    .hero-photo img { width: 144px; height: 184px; }

    .section-container { padding: 0 16px; }

    .pub-list li { padding-left: 0; padding-top: 48px; }
    .pub-list li::before { top: 0; }

    .news-scroll { max-height: 130px; }
    .news-list { padding-left: 20px; }
    .news-list li::before { left: -26px; }
}

.hero-links { flex-wrap: wrap; align-items: center; }
.hero-info address { margin-bottom: 12px; font-style: normal; }
.hero-info a, .footer-ornament a { color: inherit; }
.footer-ornament a { text-decoration: none; }
.footer-ornament a:hover { text-decoration: underline; }
.biography-content p + p { margin-top: 16px; }
.biography-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.presentation-list li { align-items: flex-start; gap: 16px; }
.presentation-list .teaching-time { white-space: nowrap; }

@media (min-width: 769px) and (max-width: 1100px) {
    .hero-content {
        gap: clamp(30px, 6vw, 80px);
        padding-inline: clamp(24px, 5vw, 70px);
    }
    .hero-text { flex: 1 1 0; min-width: 0; }
}

@media (max-width: 768px) {
    .hero-text { flex: 0 1 auto; min-width: 0; }
    .research-topics { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
    .presentation-list li { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .nav-links a, .hero-links a { transition: none; }
}
