:root {
  --navy: #012f63;
  --navy-dark: #02254d;
  --ink: #24292f;
  --muted: #667085;
  --coral: #ff4d6d;
  --coral-light: #ff7e9d;
  --coral-soft: #fff4f6;
  --surface: #ffffff;
  --surface-subtle: #f6f8fa;
  --border: #e7e9ee;
  --border-coral: rgba(255, 77, 109, 0.2);
  --shadow-soft: 0 8px 24px rgba(20, 32, 50, 0.06);
  --shadow-coral: 0 10px 26px rgba(255, 77, 109, 0.11);
  --max-width: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0;
}

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  letter-spacing: 0;
}

img {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 8px 12px;
  color: #fff;
  background: var(--navy);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.masthead {
  position: sticky;
  z-index: 50;
  top: 0;
  height: 53px;
  border-bottom: 1px solid #eff0f2;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: min(var(--max-width), calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
}

.site-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: #5b6169;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.site-logo {
  display: block;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
}

.site-title span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-title:hover,
.site-title:focus-visible {
  color: var(--navy);
}

.site-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 52px;
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 32px 0 90px;
}

.profile {
  position: sticky;
  top: 96px;
  align-self: start;
}

.profile__photo {
  display: block;
  width: 176px;
  aspect-ratio: 3 / 4;
  margin: 0 auto 18px;
  padding: 5px;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
  object-position: 50% 18%;
  box-shadow: none;
}

.profile__content {
  width: 220px;
  margin: 0 auto;
}

.profile__name {
  margin: 0 0 3px;
  color: var(--navy);
  font-size: 23px;
  font-weight: 750;
  line-height: 1.25;
  text-align: left;
}

.profile__role {
  margin: 5px 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.profile__links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile__links li,
.profile__links a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.35;
  text-decoration: none;
}

.profile__links a:hover {
  color: var(--coral);
}

.profile__links svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.content {
  min-width: 0;
}

.about-section {
  scroll-margin-top: 90px;
}

.about-section h1 {
  margin: 10px 0 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid #eceef1;
  color: var(--navy);
  font-size: 21px;
  font-weight: 750;
  line-height: 1.2;
}

.language-switcher {
  display: inline-flex;
  gap: 3px;
  margin: 15px 0 21px;
  padding: 4px;
  border: 1px solid #eceef1;
  border-radius: 999px;
  background: var(--surface-subtle);
  box-shadow: 0 5px 12px rgba(20, 32, 50, 0.05);
}

.language-tab {
  min-width: 70px;
  min-height: 34px;
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  color: #5e6570;
  background: transparent;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.language-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, #fe667b 0%, #6aa9ff 100%);
  box-shadow: 0 4px 10px rgba(255, 77, 109, 0.28);
}

.intro-copy p {
  margin: 0 0 11px;
  font-size: 15.3px;
  line-height: 1.72;
}

.intro-copy strong {
  color: var(--navy-dark);
}

.research-note {
  margin: 16px 0 29px;
  padding: 16px 18px;
  border-left: 4px solid #0366d6;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
  box-shadow: 0 6px 18px rgba(1, 47, 99, 0.06);
  color: var(--navy-dark);
}

.research-note p {
  margin: 0;
  line-height: 1.65;
}

.feature-section {
  margin: 32px 0 35px;
  padding: 19px;
  border: 1px solid rgba(1, 47, 99, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  box-shadow: 0 10px 30px rgba(1, 47, 99, 0.06);
  scroll-margin-top: 90px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: 999px;
  color: #fe667b;
  background: rgba(254, 102, 123, 0.08);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.section-kicker svg {
  width: 14px;
  height: 14px;
}

.feature-section h2 {
  margin: 10px 0 16px;
  color: var(--navy);
  font-size: 22px;
  font-weight: 850;
  line-height: 1.3;
}

.news-list {
  display: grid;
  gap: 10px;
}

.news-item {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid rgba(1, 47, 99, 0.08);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 6px 18px rgba(1, 47, 99, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.news-item:hover {
  border-color: rgba(254, 102, 123, 0.22);
  box-shadow: 0 12px 28px rgba(1, 47, 99, 0.12);
  transform: translateY(-4px);
}

.news-item time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #fe667b 0%, #6aa9ff 100%);
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 5px 14px rgba(254, 102, 123, 0.18);
}

.news-item div {
  padding-top: 2px;
  font-size: 14px;
  line-height: 1.55;
}

.publications-section,
.simple-section {
  margin-top: 42px;
  scroll-margin-top: 90px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e7e9ec;
  color: #3f444b;
  font-size: 22px;
  line-height: 1.3;
}

.section-heading svg {
  width: 22px;
  height: 22px;
  color: var(--navy);
}

.section-heading__emoji {
  width: 22px;
  flex: 0 0 22px;
  font-size: 20px;
  line-height: 1;
  text-align: center;
}

.publication-note {
  margin: 0 0 16px;
  color: #5c626c;
  font-size: 13px;
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.filter-button {
  min-height: 32px;
  padding: 5px 12px;
  border: 1px solid #e1e4e8;
  border-radius: 999px;
  color: #59616c;
  background: var(--surface-subtle);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.filter-button:hover,
.filter-button:focus-visible {
  border-color: rgba(255, 77, 109, 0.35);
  color: var(--coral);
}

.filter-button.is-active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #38ef7d, #11998e);
  box-shadow: 0 2px 8px rgba(17, 153, 142, 0.3);
}

.publication-list {
  display: grid;
  gap: 22px;
}

.publication-card {
  display: grid;
  grid-template-columns: minmax(280px, 40%) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--border-coral);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-coral);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.publication-card:hover {
  border-color: rgba(255, 77, 109, 0.38);
  box-shadow: 0 14px 32px rgba(255, 77, 109, 0.16);
  transform: translateY(-3px);
}

.publication-card__media {
  position: relative;
  min-width: 0;
}

.publication-card__media img {
  display: block;
  width: 100%;
  aspect-ratio: 2.2 / 1;
  border: 1px solid #e7e9ed;
  border-radius: 6px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 5px 14px rgba(20, 32, 50, 0.07);
}

.publication-badge {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  padding: 5px 12px;
  border-radius: 6px 0 8px 0;
  color: #fff;
  background: linear-gradient(135deg, var(--coral), var(--coral-light));
  font-size: 12px;
  font-weight: 820;
  box-shadow: 2px 3px 10px rgba(255, 77, 109, 0.3);
}

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

.publication-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.42;
}

.publication-venue {
  margin: 0 0 12px;
  color: #68707c;
  font-size: 14px;
  font-style: italic;
}

.publication-authors {
  margin: 0 0 14px;
  color: #2d333b;
  font-size: 15px;
  font-weight: 620;
  line-height: 1.65;
}

.publication-author {
  color: var(--navy);
  text-decoration: none;
}

a.publication-author:hover {
  text-decoration: underline;
}

.publication-author--self {
  color: transparent;
  background: linear-gradient(135deg, #d500f9 0%, #ff1744 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  font-weight: 850;
}

.author-marker {
  margin-left: 2px;
  font-size: 12px;
}

.publication-tags,
.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.publication-tags {
  margin-bottom: 15px;
}

.publication-links {
  transform: translateY(4.8px);
}

.publication-tag {
  padding: 4px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  color: #4d5663;
  background: #f3f4f6;
  font-size: 12px;
  font-weight: 560;
}

.publication-tag.is-active {
  border-color: #add9b3;
  color: #26743b;
  background: #edf9ef;
}

.publication-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 15px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #fe667b;
  box-shadow: 0 5px 12px rgba(255, 77, 109, 0.27);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

a.publication-link:hover,
a.publication-link:focus-visible {
  box-shadow: 0 7px 16px rgba(255, 77, 109, 0.38);
  transform: translateY(-1px);
}

.publication-link--disabled {
  cursor: not-allowed;
  opacity: 0.78;
}

.empty-state {
  padding: 24px;
  color: var(--muted);
  border: 1px dashed var(--border);
  text-align: center;
}

.simple-section ul {
  margin: 14px 0 0;
  padding-left: 22px;
}

.simple-section li {
  margin-bottom: 7px;
}

.footer {
  border-top: 1px solid #e7e9ec;
  color: #747b85;
  background: #f7f8f9;
  font-size: 12px;
}

.footer > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0;
}

noscript {
  display: block;
  padding: 16px;
  color: #8a1c31;
  background: #fff1f3;
  text-align: center;
}

@media (max-width: 960px) {
  .site-shell {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 34px;
  }

  .profile__photo {
    width: 158px;
  }

  .profile__content {
    width: 190px;
  }

  .publication-card {
    grid-template-columns: minmax(240px, 42%) minmax(0, 1fr);
    gap: 24px;
    padding: 20px;
  }

  .publication-card h3 {
    font-size: 18px;
  }
}

@media (max-width: 760px) {
  .masthead__inner,
  .site-shell,
  .footer > div {
    width: min(100% - 32px, var(--max-width));
  }

  .site-shell {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 30px;
  }

  .profile {
    position: static;
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
  }

  .profile__photo {
    width: 124px;
    margin: 0;
  }

  .profile__content {
    width: auto;
    margin: 0;
  }

  .profile__name,
  .profile__role {
    text-align: left;
  }

  .profile__role {
    margin-bottom: 10px;
  }

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

  .publication-card__media img {
    aspect-ratio: 2.1 / 1;
  }
}

@media (max-width: 520px) {
  .masthead {
    height: auto;
  }

  .masthead__inner {
    min-height: 58px;
  }

  .site-title {
    font-size: 13px;
  }

  .site-logo {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .about-section h1 {
    font-size: 24px;
  }

  .profile {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 18px;
  }

  .profile__photo {
    width: 104px;
  }

  .profile__name {
    font-size: 19px;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .news-item time {
    justify-self: start;
  }

  .publication-card {
    padding: 16px;
  }

  .publication-card h3 {
    font-size: 17px;
  }

  .publication-authors {
    font-size: 14px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
