:root {
    --background: #f6f6f6;
    --card: rgba(255, 255, 255, 0.94);
    --card-solid: rgba(255, 255, 255, 0.78);
    --text: #222222;
    --subtle: #3f4247;
    --muted: #6b7078;
    --line: rgba(255, 159, 67, 0.2);
    --line-neutral: rgba(0, 0, 0, 0.075);
    --accent: #ff9f43;
    --accent-strong: #c4631a;
    --accent-soft: #fff4ec;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.07);
    --soft-shadow: 0 8px 26px rgba(0, 0, 0, 0.045);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.58;
    background-color: var(--background);
    background-image:
        linear-gradient(rgba(246, 246, 246, 0.78), rgba(246, 246, 246, 0.9)),
        url("../img/background.jpg");
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    -webkit-font-smoothing: antialiased;
}

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

a:focus-visible {
    outline: 3px solid rgba(255, 159, 67, 0.38);
    outline-offset: 3px;
}

.page-shell {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 34px 20px 42px;
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    font-size: 14px;
}

.top-nav a {
    text-decoration: none;
    transition: color 0.15s ease;
}

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

.nav-name {
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.01em;
}

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

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

.card {
    margin-bottom: 20px;
    padding: 34px 36px;
    overflow: hidden;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.card[id] {
    scroll-margin-top: 20px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 42px;
}

.hero-content {
    min-width: 0;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent-strong);
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p,
figure {
    margin-top: 0;
}

h1 {
    margin-bottom: 8px;
    font-size: 42px;
    font-weight: 780;
    line-height: 1.12;
    letter-spacing: -0.045em;
}

h1 span {
    display: inline-block;
    margin-left: 8px;
    font-size: 0.72em;
    transform: translateY(-2px);
}

h2 {
    margin-bottom: 20px;
    padding-bottom: 12px;
    color: var(--text);
    font-size: 26px;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -0.025em;
    border-bottom: 1px solid var(--line-neutral);
}

h3 {
    margin-bottom: 12px;
    color: var(--text);
    font-size: 18px;
    font-weight: 720;
    line-height: 1.3;
}

.identity {
    margin-bottom: 1px;
    color: var(--subtle);
    font-size: 18px;
    font-weight: 600;
}

.affiliation {
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 16px;
}

.hero-about {
    max-width: 760px;
    margin-bottom: 16px;
    color: var(--subtle);
}

.hero-about strong {
    color: var(--text);
}

.contact-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 14px;
}

.contact-details a {
    color: var(--muted);
    text-decoration: none;
}

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

.link-pills,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.link-pills a {
    padding: 5px 12px;
    color: var(--accent-strong);
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(196, 99, 26, 0.2);
    border-radius: 999px;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.link-pills a:hover {
    color: #ffffff;
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    transform: translateY(-1px);
}

.profile-photo-wrap {
    width: fit-content;
    margin: 0;
    overflow: hidden;
    justify-self: end;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.1);
}

.profile-photo {
    display: block;
    width: 190px;
    aspect-ratio: 3 / 5;
    object-fit: cover;
    object-position: center;
}

.two-column-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.inner-card {
    min-width: 0;
    padding: 20px;
    background: var(--card-solid);
    border: 1px solid var(--line-neutral);
    border-radius: 18px;
    box-shadow: var(--soft-shadow);
}

.section-intro {
    margin-bottom: 15px;
    color: var(--muted);
    font-size: 14px;
}

.tag-list span {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    color: var(--accent-strong);
    font-size: 14px;
    line-height: 1.4;
    background: var(--accent-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.detail-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.detail-list li {
    display: grid;
    grid-template-columns: minmax(135px, 0.85fr) minmax(0, 1.15fr);
    gap: 12px;
    padding: 8px 0;
    color: var(--muted);
    font-size: 14px;
    border-bottom: 1px solid var(--line-neutral);
}

.detail-list li:first-child {
    padding-top: 0;
}

.detail-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.detail-list strong {
    color: var(--text);
    font-weight: 650;
}

.timeline-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
}

.timeline-item img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border: 1px solid var(--line-neutral);
    border-radius: 50%;
}

.timeline-item div {
    display: flex;
    flex-direction: column;
}

.timeline-item time {
    margin-bottom: 1px;
    color: var(--muted);
    font-size: 13px;
}

.timeline-item strong {
    font-size: 16px;
}

.timeline-item span {
    color: var(--subtle);
    font-size: 14px;
}

.coursework {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line-neutral);
}

.coursework .label {
    color: var(--accent-strong);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.coursework p {
    margin: 7px 0 0;
    color: var(--subtle);
    font-size: 14px;
}

.coursework .language-note {
    color: var(--muted);
}

.internship-card {
    display: flex;
    flex-direction: column;
}

.intern-brands {
    display: flex;
    align-items: center;
    align-self: flex-start;
    gap: 14px;
    max-width: 100%;
    margin: 3px 0 20px;
    padding: 12px 15px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.intern-brands img:first-child {
    width: 126px;
    height: auto;
}

.intern-brands img:last-child {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.intern-brands span {
    width: 1px;
    height: 38px;
    background: var(--line);
}

.intern-title {
    margin-bottom: 3px;
    color: var(--accent-strong);
    font-size: 17px;
}

.internship-card p {
    margin-bottom: 0;
    color: var(--subtle);
}

.publication-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.7fr);
    gap: 24px;
    align-items: center;
}

.publication-thumbnail {
    display: block;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line-neutral);
    border-radius: 18px;
    box-shadow: var(--soft-shadow);
}

.publication-thumbnail img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.publication-thumbnail:hover img {
    transform: scale(1.015);
}

.publication-copy {
    min-width: 0;
}

.publication-status {
    margin: 0 0 7px;
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.publication-title {
    margin: 0 0 9px;
    font-size: clamp(20px, 2.2vw, 27px);
    line-height: 1.25;
}

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

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

.publication-authors {
    margin: 0 0 10px;
    color: var(--subtle);
    font-size: 14px;
}

.publication-summary {
    margin: 0 0 15px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.publication-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.publication-actions a,
.publication-actions span {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    color: var(--accent-strong);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    background: var(--accent-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.publication-actions a {
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.publication-actions a:hover {
    color: #ffffff;
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    transform: translateY(-1px);
}

.publication-actions span[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.56;
}

footer {
    padding: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

footer p {
    margin: 0;
}

@media (max-width: 900px) {
    .two-column-grid {
        grid-template-columns: 1fr;
    }

    .publication-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .page-shell {
        padding: 24px 14px 36px;
    }

    .top-nav {
        display: none;
    }

    .card {
        padding: 26px 24px;
        border-radius: 20px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .profile-photo-wrap {
        justify-self: center;
    }
}

@media (max-width: 560px) {
    .card {
        padding: 24px 18px;
    }

    h1 {
        font-size: 34px;
    }

    h2 {
        font-size: 23px;
    }

    .identity {
        font-size: 16px;
    }

    .hero-about {
        font-size: 15px;
    }

    .inner-card {
        padding: 17px;
    }

    .detail-list li {
        grid-template-columns: 1fr;
        gap: 1px;
    }

    .link-pills,
    .tag-list {
        gap: 7px;
    }

    .link-pills a,
    .tag-list span,
    .publication-actions a,
    .publication-actions span {
        font-size: 13px;
    }

    .intern-brands img:first-child {
        width: min(112px, 52vw);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .top-nav a,
    .link-pills a {
        transition: none;
    }
}
