:root {
  --bg-body: #ffffff;
  --bg-sidebar: #f8fafc;
  --line: #e2e8f0;
  --text: #0f172a;
  --muted: #475569;
  --soft: #94a3b8;
  --accent: #be123c;
  --accent-soft: rgba(190, 18, 60, 0.05);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --font-main: "Inter", "PingFang SC", "Noto Sans SC", sans-serif;
  --font-serif: "Playfair Display", "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--text);
  background: var(--bg-body);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.page-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background: var(--bg-sidebar);
  border-right: 1px solid var(--line);
  padding: 48px 32px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #c81e4d 0%, #ef6a8c 100%);
  border: 4px solid #fff;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sidebar h1,
.section-block h2,
.pub-body h3 {
  margin: 0;
}

.sidebar h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 10px;
}

.role,
.profile-meta,
.copyright,
.pub-venue,
.pub-authors,
.pub-summary {
  color: var(--muted);
}

.role {
  margin: 0 0 24px;
  font-size: 0.95rem;
  font-weight: 500;
}

.profile-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 0.9rem;
}

.profile-meta li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.profile-meta i {
  width: 18px;
  color: var(--soft);
  text-align: center;
  flex: 0 0 18px;
}

.social-links,
.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-links {
  margin-top: 20px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.82rem;
  box-shadow: var(--shadow-sm);
}

.social-links a:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

.section-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 32px;
}

.section-nav a {
  width: fit-content;
  padding: 8px 0;
  border-radius: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid transparent;
}

.section-nav a.active,
.section-nav a:hover {
  color: var(--accent);
  background: transparent;
  border-bottom-color: var(--accent);
  text-decoration: none;
}

.content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 56px 36px 64px 44px;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.2fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 72px;
}

.intro-grid > .section-block {
  margin-bottom: 0;
}

.section-block {
  margin-bottom: 56px;
}

.section-block h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.section-block h2 span {
  font-family: var(--font-main);
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 500;
}

.section-block p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.notice {
  margin-top: 24px;
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  color: #9f1239;
  border-radius: 0 6px 6px 0;
}

.research-interests-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.research-interests-list li {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0.96rem;
}

.news-scroll-wrapper {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 10px;
}

.news-table {
  display: grid;
  gap: 0;
}

.news-row {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.news-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.news-row time {
  color: var(--soft);
  font-weight: 600;
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
}

.experience-list {
  display: grid;
  gap: 24px;
}

.experience-item {
  position: relative;
  display: block;
  min-height: 148px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.experience-item:hover,
.experience-item:focus-visible {
  border-color: rgba(190, 18, 60, 0.34);
  box-shadow: var(--shadow-md);
  color: var(--text);
  outline: none;
  text-decoration: none;
  transform: translateY(-2px);
}

.experience-copy {
  position: relative;
  z-index: 1;
  max-width: min(620px, 68%);
}

.experience-item h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 1.35rem;
  line-height: 1.25;
  font-weight: 700;
}

.experience-item h3 i {
  color: var(--soft);
  font-size: 0.72em;
  transform: translateY(-1px);
  transition: color 0.2s ease;
}

.experience-item:hover h3 i,
.experience-item:focus-visible h3 i {
  color: var(--accent);
}

.experience-item p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.45;
}

.experience-item time {
  display: block;
  color: var(--soft);
  font-size: 1.03rem;
  line-height: 1.45;
}

.experience-logo {
  position: absolute;
  top: 50%;
  right: -34px;
  width: min(44%, 360px);
  height: auto;
  opacity: 0.08;
  transform: translateY(-50%);
  pointer-events: none;
  user-select: none;
}

.publication {
  display: block;
  padding: 0 0 48px;
  margin-bottom: 48px;
  border-bottom: 1px dashed var(--line);
}

.publication:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.pub-body h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 10px;
}

.pub-venue {
  margin: 0 0 10px;
}

.venue-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 4px;
  background: #334155;
  color: #fff;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.pub-authors,
.pub-summary {
  margin: 0 0 12px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.corresponding-author {
  display: inline-flex;
  align-items: center;
  margin-left: 3px;
  color: var(--accent);
  font-size: 0.68em;
  transform: translateY(-0.25em);
}

.highlight-author {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

.pub-links a,
.bib-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.pub-links a:hover,
.bib-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}

.bibtex {
  display: none;
  margin: 10px 0 0;
  padding: 12px;
  border-radius: 6px;
  background: #1e293b;
  color: #e2e8f0;
  font-size: 0.75rem;
  overflow-x: auto;
  line-height: 1.45;
}

.bibtex.open {
  display: block;
}

.honors-list {
  margin: 0;
  padding-left: 20px;
}

.honors-list li + li {
  margin-top: 8px;
}

.copyright {
  margin: 24px 0 0;
  font-size: 0.92rem;
}

@media (max-width: 1200px) {
  .content {
    padding: 48px 28px 56px 32px;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 56px;
  }

  .news-scroll-wrapper {
    max-height: none;
  }
}

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

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    align-items: center;
    text-align: center;
    padding: 40px 24px;
  }

  .section-nav {
    display: none;
  }

  .content {
    padding: 48px 24px;
  }

  .publication {
    padding-bottom: 36px;
    margin-bottom: 36px;
  }
}

@media (max-width: 640px) {
  .publication,
  .news-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .experience-item {
    min-height: 156px;
    padding: 24px;
  }

  .experience-copy {
    max-width: 82%;
  }

  .experience-item h3 {
    font-size: 1.16rem;
  }

  .experience-item p,
  .experience-item time {
    font-size: 0.95rem;
  }

  .experience-logo {
    right: -54px;
    width: 62%;
    opacity: 0.07;
  }

  .content {
    padding: 40px 18px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .experience-item,
  .experience-item h3 i {
    transition: none;
  }
}
