/* --- Variables --- */
:root {
  --bg: #faf9f7;
  --bg-card: #fff;
  --text: #1c1c1c;
  --text-muted: #5a5a5a;
  --accent: #2d5a4a;
  --accent-light: #3d7a64;
  --border: #e5e2de;
  --serif: 'Noto Serif SC', 'Georgia', serif;
  --sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  --radius: 10px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
}

/* --- Page wrapper --- */
.page {
  width: 80%;
  max-width: none;
  margin: 0 auto;
  min-height: 100vh;
  padding: 0 2rem;
}

/* --- Top navigation (sticky) --- */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 0 1.25rem;
  margin: 0 -2rem 0.5rem;
  padding-left: 2rem;
  padding-right: 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.nav-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

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

.top-nav .quick-links {
  margin: 0;
  justify-content: flex-end;
}

/* --- Main flow layout --- */
.main {
  width: 100%;
  max-width: none;
  padding: 0 0 2.5rem;
}

/* --- Hero (left-aligned) --- */
.hero {
  min-height: 46vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  padding: 2.25rem 0 1.25rem;
  position: relative;
}

.site-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.hero-content {
  width: 100%;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
}

.contact-item {
  margin: 0;
}

.contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s;
}

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

.contact-list i {
  flex-shrink: 0;
  opacity: 0.85;
}

.hero-photo {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  margin-bottom: 0;
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.6),
    0 0 32px 10px rgba(0, 0, 0, 0.08),
    0 0 64px 20px rgba(0, 0, 0, 0.04);
}

.name-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0 0 0.25rem;
}

.name {
  font-family: var(--serif);
  font-size: clamp(28px, 6.5vw, 37px);
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.02em;
  color: var(--text);
  line-height: 1.2;
}

.name-row .name-cn {
  font-family: var(--serif);
  font-size: clamp(16px, 3.6vw, 19px);
  font-weight: 500;
  color: #9a9a9a;
  margin: 0;
  letter-spacing: 0.08em;
}

.name-cn {
  font-family: var(--serif);
  font-size: clamp(16px, 3.6vw, 19px);
  color: var(--text-muted);
  margin: 0;
}

.tagline {
  font-size: 13px;
  color: var(--text-muted);
  margin: 1.25rem 0 0.75rem;
  font-weight: 500;
}

.about-inline {
  margin-bottom: 1rem;
}

.about-interests {
  margin-bottom: 1rem;
}

.interest-tags {
  display: inline-block;
  font-size: 12px;
  margin-bottom: 0.35rem;
  letter-spacing: 0.2em;
  opacity: 0.9;
}

.about-interests p {
  margin: 0;
  font-size: 11px;
  line-height: 1.65;
  color: var(--text-muted);
}

.hero-research {
  margin-bottom: 1rem;
}

.about-inline p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: flex-start;
}

.quick-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  padding: 0.35em 0.6em;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.quick-links a:hover,
.quick-links a.active {
  background: rgba(45, 90, 74, 0.1);
  color: var(--accent-light);
}

/* --- Sections --- */
.section {
  padding: 2.1rem 0 0;
}

.section:first-child { padding-top: 1.25rem; }

.section + .section {
  border-top: 1px solid var(--border);
  margin-top: 1.25rem;
  padding-top: 2rem;
}

.section-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--text);
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.01em;
}

.section-desc {
  color: var(--text-muted);
  margin: -0.25rem 0 1rem;
  font-size: 13px;
}

/* --- News --- */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-item {
  display: flex;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}

.news-item:last-child { border-bottom: none; }

.news-date {
  flex: 0 0 5rem;
  font-size: 12px;
  color: var(--text-muted);
}

.news-text {
  font-size: 13px;
  line-height: 1.55;
}

/* --- Education --- */
.edu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.edu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 1.25rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.edu-item:last-child { border-bottom: none; }

.edu-degree { font-weight: 600; }
.edu-school { color: var(--text-muted); }
.edu-meta {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  font-size: 10px;
  color: var(--text-muted);
}

@media (max-width: 520px) {
  .edu-item {
    grid-template-columns: 1fr;
  }
  .edu-meta { grid-column: 1; grid-row: auto; }
}

/* --- Experience --- */
.exp-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.exp-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.exp-item:last-child {
  border-bottom: none;
}

.exp-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.5rem;
}

.exp-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.exp-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 4px;
  object-fit: contain;
}

.exp-title {
  font-weight: 600;
  font-size: 12px;
  color: var(--text);
}

.exp-date {
  font-size: 11px;
  color: var(--text-muted);
}

.exp-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text);
}

.exp-desc p {
  margin: 0 0 0.4em;
}

.exp-desc p:last-child {
  margin-bottom: 0;
}

/* --- Beyond Research --- */
.beyond-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.beyond-list li {
  padding: 0.4rem 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

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

/* --- Publications (one row per paper) --- */
.papers-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.paper-row {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.paper-row:last-child {
  border-bottom: none;
}

.paper-row-media {
  width: 100%;
  max-width: 320px;
  flex-shrink: 0;
}

.paper-video {
  width: 100%;
  max-width: 320px;
  display: block;
  border: none;
  border-radius: 6px;
  background: var(--border);
}

.paper-row-info {
  min-width: 0;
}

.paper-title {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 0.35em;
  line-height: 1.35;
}

.paper-authors {
  font-size: 12px;
  color: var(--text);
  margin: 0 0 0.45em;
  line-height: 1.5;
}

.paper-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0.5em 0;
}

.paper-badges a {
  display: inline-block;
  line-height: 0;
}

.paper-badges img {
  height: 20px;
  display: block;
}

.paper-venue-line {
  margin: 0.3em 0 0.45em;
  font-size: 12px;
}

.paper-venue-line a {
  color: #c2410c;
  text-decoration: none;
  font-weight: 600;
}

.paper-venue-line a:hover {
  text-decoration: underline;
}

.paper-abstract {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 920px) {
  .top-nav { padding-left: 0; padding-right: 0; }
  .top-nav .quick-links { justify-content: center; }
  .hero { text-align: center; }
  .hero-content {
    max-width: 100%;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1.25rem;
    padding: 0 1.25rem;
  }
  .contact-list { justify-content: center; }
  .tagline,
  .about-interests,
  .hero-research { text-align: center; }
  .page { padding-left: 1.25rem; padding-right: 1.25rem; }
  .paper-row { grid-template-columns: 1fr; }
  .paper-row-media { max-width: 100%; }
  .paper-video { max-width: 100%; }
}

@media (max-width: 560px) {
  .page { padding-left: 1rem; padding-right: 1rem; }
  .hero-photo { width: 220px; height: 220px; }
  .site-name { left: 1rem; }
}