﻿:root {
    --background: #f6f7f9;
    --surface: #ffffff;
    --surface-soft: #fbfcfd;
    --text: #1f2933;
    --muted: #5f6b7a;
    --border: #d9dee7;
    --accent: #2f6f9f;
    --accent-strong: #24577f;
    --shadow: 0 14px 34px rgba(31, 41, 51, 0.08);
    --page-width: 960px;
    --page-gutter: 40px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 52px;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
}

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

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

.page {
    width: calc(100% - var(--page-gutter));
    max-width: var(--page-width);
    margin: 0 auto;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(246, 247, 249, 0.94);
    backdrop-filter: blur(12px);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 50px;
    border-bottom: 1px solid var(--border);
}

.nav-name {
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-link {
    padding: 4px 10px;
    color: var(--muted);
    font-size: 0.93rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--accent);
}

.site-header {
    padding: 28px 0 18px;
}

.profile {
    display: grid;
    grid-template-columns: 177px 1fr;
    gap: 42px;
    align-items: start;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.profile-card {
    display: grid;
    gap: 7px;
    justify-items: start;
    min-width: 0;
}

.profile-photo img {
    display: block;
    width: 158px;
    height: 216px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.profile h1 {
    margin: 3px 0 0;
    font-size: 1.26rem;
    font-weight: 700;
    line-height: 1.2;
}

.profile-role {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.35;
}

.profile-intro {
    width: 100%;
    max-width: 800px;
    min-width: 0;
}

.profile-intro p {
    max-width: none;
    margin: 0 0 11px;
}

.about-links {
    color: var(--muted);
    font-size: 0.96rem;
}

.about-links a {
    font-weight: 600;
}

.profile-intro .about-links {
    margin-top: 18px;
}

main {
    padding: 0 0 40px;
}

.section {
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    min-width: 0;
}

.section:last-of-type {
    border-bottom: 0;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.profile-intro h2,
.section h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
}

.profile-intro h2 {
    margin-top: 0px;
    margin-bottom: 8px;
}

.section-header .toggle-button {
    flex-shrink: 0;
    margin-left: 2px;
}

.segmented-control {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 2px;
    border: 1px solid #c8d2df;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.45);
}

.segment-button {
    min-height: 26px;
    padding: 2px 10px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.segment-button:hover,
.segment-button:focus-visible {
    color: var(--accent);
    outline: none;
}

.segment-button.is-active {
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 1px 3px rgba(31, 41, 51, 0.12);
}

.section-note {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 0.94rem;
}

.paper-view-status {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.35;
}

.research-copy p {
    max-width: none;
    margin: 0 0 12px;
}

.profile-intro p,
.research-copy p,
.paper-title,
.paper-meta,
.paper-venue,
.simple-list li {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.profile-intro a,
.paper-title a,
.simple-list a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.research-copy {
    max-height: none;
    overflow: visible;
    transition: max-height 180ms ease;
}

.research-copy.is-collapsed {
    max-height: 4.8rem;
    overflow: hidden;
}

.research-copy.is-expanded {
    max-height: none;
    overflow: visible;
}

.research-question {
    margin-top: 10px;
    color: var(--text);
}

.research-question em {
    color: var(--muted);
    font-style: italic;
    font-weight: 700;
}

.publication-list,
.simple-list {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
    min-width: 0;
}

.publication-list {
    gap: 12px;
}

.simple-list {
    gap: 6px;
}

.publication-item {
    padding: 0;
    max-width: 100%;
    min-width: 0;
}

.paper-title {
    font-weight: 700;
    line-height: 1.28;
}

.paper-title a {
    color: var(--accent);
    text-decoration: none;
}

.paper-title a:hover {
    color: var(--accent-strong);
}

.paper-meta {
    margin-top: 1px;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.3;
}

.paper-venue {
    margin-top: 0;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.3;
}

.simple-list li {
    padding: 0;
    line-height: 1.38;
    min-width: 0;
}

.subsection {
    margin-top: 12px;
}

.subsection:first-of-type {
    margin-top: 0;
}

.subsection h3 {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.98rem;
    letter-spacing: 0;
}

#service .subsection {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    column-gap: 20px;
    align-items: start;
    margin-top: 10px;
}

#service .subsection h3 {
    margin: 0;
    padding-top: 1px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
}

#service .simple-list {
    gap: 4px;
}

.action-row {
    margin-top: 10px;
}

.toggle-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 3px 9px;
    border: 1px solid #c8d2df;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.45);
    color: #475569;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.toggle-button:hover,
.toggle-button:focus-visible {
    border-color: #8ba4c3;
    background: #f7fbff;
    color: var(--accent);
    outline: none;
}

[hidden] {
    display: none !important;
}

.site-footer {
    padding: 0 0 44px;
    color: var(--muted);
    font-size: 0.92rem;
}

.footer-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.footer-content p {
    margin: 0;
}

.codex-credit {
    margin: 0;
    text-align: right;
    font-size: 0.86rem;
    white-space: nowrap;
}

.map-link img {
    display: block;
    max-width: 220px;
    height: auto;
    margin-top: 12px;
    opacity: 0.8;
}
.text-red {
    color: #b42318;
}
@media (max-width: 720px) {
    :root {
        --page-gutter: 28px;
    }

    .nav-content {
        display: block;
        min-height: auto;
        padding: 8px 0;
    }

    .nav-links {
        justify-content: flex-start;
        gap: 6px;
        margin-top: 4px;
    }

    .nav-link {
        padding: 4px 8px;
    }

    .site-header {
        padding-top: 24px;
    }

    .profile {
        grid-template-columns: 1fr;
        gap: 18px;
    }

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

    .profile h1 {
        font-size: 1.55rem;
    }

    .section-header {
        display: block;
    }

    .section-header .toggle-button {
        margin-top: 8px;
    }

    .segmented-control {
        margin-top: 8px;
    }

    .paper-view-status {
        margin-top: 6px;
    }

    #service .subsection {
        grid-template-columns: 1fr;
        row-gap: 3px;
    }

    #service .subsection h3 {
        padding-top: 0;
    }

    .footer-content {
        display: block;
    }

    .codex-credit {
        margin-top: 10px;
        text-align: left;
        white-space: normal;
    }
}


