/* ===== Academic homepage - blue palette ===== */

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1a2433;
    background: #f3f6fb;
    background-attachment: fixed;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    font-feature-settings: "cv11", "ss01", "ss03";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

code, pre, .mono {
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", monospace;
}

.wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 48px 28px 80px;
}

/* ===== Header ===== */
header.site-header {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-bottom: 36px;
    padding: 28px 32px;
    background: #ffffff;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    box-shadow:
        0 10px 30px rgba(20, 40, 80, 0.08),
        0 2px 6px rgba(20, 40, 80, 0.05);
    position: relative;
    overflow: hidden;
    animation: fadeUp 0.7s ease both;
}

header.site-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e4d8b 0%, #5b8fb9 50%, #1e4d8b 100%);
}

.photo {
    width: 160px;
    height: 195px;
    flex-shrink: 0;
    background: #e8eef6;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(20, 40, 80, 0.18);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.photo:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(20, 40, 80, 0.25);
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.headline {
    flex: 1;
    min-width: 0;
}

.headline h1 {
    font-size: 30px;
    font-weight: bold;
    margin: 0 0 6px 0;
    color: #0f1f3a;
    letter-spacing: 0;
    line-height: 1.2;
}

.zh-name {
    font-family:
        "Microsoft YaHei",
        "PingFang SC", "Heiti SC", "Hiragino Sans GB",
        "Noto Sans SC", "Source Han Sans SC", sans-serif;
    font-weight: 700;
    letter-spacing: 0.16em;
    margin-right: -0.04em;
    color: #0f1f3a;
}

.headline .subtitle {
    font-size: 16px;
    color: #4d5b73;
    margin: 0 0 8px 0;
    font-style: italic;
}

.headline .affiliation {
    font-size: 14.5px;
    color: #3d4a63;
    margin: 0 0 3px 0;
}

.headline .affiliation + .affiliation {
    margin-bottom: 12px;
}

.headline .research-focus {
    font-size: 14px;
    color: #2a3850;
    margin: 12px 0;
    padding: 10px 12px;
    background: #f6f9fd;
    border: 1px solid #dbe4f0;
    border-left: 3px solid #1e4d8b;
    border-radius: 6px;
    line-height: 1.5;
}

.headline .contact-line {
    font-size: 14px;
    color: #2a3850;
    margin: 6px 0;
}

.headline .links-line {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.headline .links-line a {
    display: inline-block;
    color: #1e4d8b;
    background: #eff5fb;
    border: 1px solid #c9dbef;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 13px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    transition: all 0.2s ease;
}

.headline .links-line a:hover {
    background: #1e4d8b;
    color: #ffffff;
    border-color: #1e4d8b;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(30, 77, 139, 0.3);
}

/* ===== Sections ===== */
section {
    margin-bottom: 4px;
    animation: fadeUp 0.7s ease both;
}

section:nth-of-type(1) { animation-delay: 0.05s; }
section:nth-of-type(2) { animation-delay: 0.1s; }
section:nth-of-type(3) { animation-delay: 0.15s; }
section:nth-of-type(4) { animation-delay: 0.2s; }
section:nth-of-type(5) { animation-delay: 0.25s; }
section:nth-of-type(6) { animation-delay: 0.3s; }
section:nth-of-type(7) { animation-delay: 0.35s; }
section:nth-of-type(8) { animation-delay: 0.4s; }
section:nth-of-type(9) { animation-delay: 0.45s; }

/* ===== Typography ===== */
h2 {
    font-size: 21px;
    font-weight: bold;
    color: #0f1f3a;
    margin: 36px 0 14px 0;
    padding: 4px 0 6px 14px;
    border-left: 4px solid #1e4d8b;
    border-bottom: 1px solid #dbe4f0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    letter-spacing: 0;
}

h3 {
    font-size: 16px;
    font-weight: bold;
    margin: 18px 0 6px 0;
    color: #1a2433;
}

p {
    margin: 0 0 12px 0;
}

a {
    color: #1e4d8b;
    text-decoration: none;
    transition: color 0.15s ease, background 0.15s ease;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

a:visited {
    color: #163b6e;
}

strong {
    font-weight: bold;
    color: #0f1f3a;
}

em {
    font-style: italic;
}

ul {
    margin: 8px 0 12px 0;
    padding-left: 22px;
}

ul li {
    margin-bottom: 6px;
}

hr {
    border: 0;
    border-top: 1px solid #dbe4f0;
    margin: 32px 0;
}

.muted {
    color: #6a7790;
    margin: 0 3px;
}

/* ===== Research interests ===== */
.interests {
    list-style: none;
    padding-left: 0;
}

.interests li {
    padding: 10px 14px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid #dbe4f0;
    border-left: 3px solid #5b8fb9;
    border-radius: 6px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.interests li:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateX(2px);
}

.interests li strong {
    color: #0f1f3a;
}

/* ===== Publications ===== */
.pub-year-header {
    display: inline-block;
    font-size: 13px;
    font-weight: bold;
    color: #1e4d8b;
    margin: 22px 0 10px 0;
    padding: 3px 10px;
    background: #eff5fb;
    border: 1px solid #c9dbef;
    border-radius: 999px;
    letter-spacing: 0.05em;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

ol.pub-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    counter-reset: pub;
}

ol.pub-list[start="3"] {
    counter-reset: pub 2;
}

ol.pub-list[start="5"] {
    counter-reset: pub 4;
}

ol.pub-list > li {
    margin-bottom: 10px;
    padding: 10px 14px 10px 38px;
    position: relative;
    font-size: 15px;
    line-height: 1.55;
    counter-increment: pub;
    border-radius: 8px;
    transition: background 0.2s ease;
}

ol.pub-list > li:hover {
    background: rgba(255, 255, 255, 0.75);
}

ol.pub-list > li::before {
    content: "[" counter(pub) "]";
    position: absolute;
    left: 10px;
    color: #1e4d8b;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: bold;
}

.pub-title {
    color: #0f1f3a;
}

.pub-venue {
    color: #3d4a63;
}

.pub-meta {
    color: #6a7790;
    font-size: 13px;
    font-style: italic;
}

.pub-links {
    font-size: 13px;
    margin-left: 4px;
}

.pub-links a {
    margin: 0 2px;
}

/* ===== Footer ===== */
footer.site-footer {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #dbe4f0;
    font-size: 12.5px;
    color: #6a7790;
    text-align: center;
}

footer.site-footer a {
    color: #6a7790;
}

footer.site-footer .zh-name {
    color: #6a7790;
}

/* ===== Animations ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .wrap {
        padding: 24px 16px 60px;
    }

    header.site-header {
        flex-direction: column;
        gap: 18px;
        padding: 22px;
    }

    .photo {
        width: 130px;
        height: 158px;
    }

    .headline h1 {
        font-size: 25px;
    }

    h2 {
        font-size: 19px;
    }
}
