:root {
  --black: #050505;
  --ink: #111111;
  --ink-soft: #3a3a3a;
  --muted: #737373;
  --quiet: #a3a3a3;
  --paper: #f5f5f2;
  --panel: #ffffff;
  --panel-solid: #ffffff;
  --line: rgba(0, 0, 0, 0.12);
  --line-strong: rgba(0, 0, 0, 0.24);
  --inverse-line: rgba(255, 255, 255, 0.16);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
  --radius: 16px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 76% 10%, rgba(255, 255, 255, 0.11), transparent 28%),
    linear-gradient(135deg, #030303 0%, #111111 44%, #050505 100%);
  background-size: 44px 44px, 44px 44px, auto, auto;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 15.5px;
  line-height: 1.68;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.34) 34%, transparent 64%),
    radial-gradient(circle at 18% 86%, rgba(255, 255, 255, 0.08), transparent 30%);
  content: "";
  pointer-events: none;
}

a {
  color: var(--black);
  text-decoration: none;
  text-underline-offset: 4px;
}

a:hover {
  text-decoration: underline;
}

main a:not(.button) {
  color: #303030;
  font-weight: 760;
  text-decoration: underline;
  text-decoration-color: rgba(0, 0, 0, 0.34);
  text-decoration-thickness: 1px;
}

main a:not(.button):hover {
  color: #fff;
  background: #000;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.lang {
  display: none;
}

body[data-lang="en"] .lang-en,
body[data-lang="zh"] .lang-zh {
  display: inline;
}

.site-header {
  position: fixed;
  top: 18px;
  right: 24px;
  left: 24px;
  z-index: 20;
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 24px;
  padding: 14px 18px;
  border: 1px solid var(--inverse-line);
  border-radius: 22px;
  background: rgba(9, 9, 9, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.brand {
  display: flex;
  min-width: 220px;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02)),
    #0c0c0c;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  font-weight: 700;
}

.brand strong,
.brand > span > .lang-zh {
  display: block;
  color: #fff;
  font-family: Georgia, "Times New Roman", "SimSun", serif;
  font-size: 1.06rem;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 0;
}

.site-nav a {
  position: relative;
  display: flex;
  min-height: 38px;
  align-items: center;
  padding: 7px 10px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.94rem;
  font-weight: 680;
}

.site-nav a::before {
  position: absolute;
  right: 10px;
  bottom: 7px;
  left: 10px;
  width: auto;
  height: 1px;
  background: rgba(255, 255, 255, 0.38);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff;
  outline: none;
  text-decoration: none;
}

.site-nav a:hover::before,
.site-nav a:focus-visible::before {
  background: #fff;
  transform: scaleX(1);
}

.lang-switch {
  display: inline-flex;
  gap: 4px;
  margin-top: 0;
  padding: 4px;
  border: 1px solid var(--inverse-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.lang-switch button {
  min-width: 48px;
  min-height: 31px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.64);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 760;
  cursor: pointer;
}

.lang-switch button.active {
  background: #fff;
  color: #000;
}

.nav-toggle {
  display: none;
}

main,
.site-footer {
  width: min(980px, calc(100vw - 48px));
  margin-inline: auto;
}

main {
  padding: 124px 0 24px;
}

.doodle-strip {
  position: relative;
  height: 0;
  pointer-events: none;
}

.doodle {
  position: absolute;
  z-index: 0;
  width: 70px;
  height: 70px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.66);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
}

.doodle-bot {
  top: -78px;
  right: 118px;
  transform: rotate(-8deg);
}

.doodle-plane {
  top: 360px;
  right: -34px;
  width: 58px;
  height: 58px;
  stroke: rgba(0, 0, 0, 0.28);
  transform: rotate(7deg);
}

.doodle-spark {
  top: 910px;
  left: -38px;
  width: 54px;
  height: 54px;
  stroke: rgba(0, 0, 0, 0.3);
  transform: rotate(-10deg);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 182px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  margin-bottom: 18px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.section-doodle {
  position: absolute;
  z-index: 0;
  width: 116px;
  height: 96px;
  fill: none;
  stroke: rgba(0, 0, 0, 0.16);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.2;
  pointer-events: none;
}

.hero-doodle {
  right: -6px;
  bottom: -32px;
  width: 168px;
  height: 168px;
  opacity: 0.32;
  object-fit: contain;
  transform: rotate(-3deg);
}

.hero-daydayup-art {
  stroke: none;
  filter: contrast(1.05);
}

.news-section,
.intro-band,
#research {
  position: relative;
  overflow: hidden;
}

.about-doodle {
  top: 2px;
  right: 8px;
  width: 122px;
  height: 122px;
  opacity: 0.32;
  object-fit: contain;
}

.about-bear-art {
  stroke: none;
  filter: contrast(1.06);
}

.research-doodle {
  right: -28px;
  bottom: -26px;
  width: 260px;
  height: 230px;
  opacity: 0.24;
  object-fit: contain;
  transform: rotate(2deg);
}

.research-bear-art {
  stroke: none;
  filter: contrast(1.08);
}

.hero::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.06), transparent 36%),
    linear-gradient(315deg, rgba(0, 0, 0, 0.05), transparent 42%);
  content: "";
  pointer-events: none;
}

.hero::after {
  position: absolute;
  right: -88px;
  bottom: -96px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  content: "";
}

.hero-image {
  position: relative;
  z-index: 1;
  width: 182px;
  height: 182px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  filter: none;
  object-fit: cover;
  object-position: center;
  box-shadow: 14px 14px 0 #111;
}

.hero-shade {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.section > :not(.section-doodle),
.hero > :not(.section-doodle) {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 8px;
  color: var(--black);
  font-family: Georgia, "Times New Roman", "SimSun", serif;
  font-size: clamp(2.6rem, 5vw, 4.3rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

#hero-title + .lang-zh {
  display: none;
  margin: -2px 0 12px;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", "SimSun", serif;
  font-size: 1.32rem;
}

body[data-lang="zh"] #hero-title + .lang-zh {
  display: block;
}

h2 {
  margin-bottom: 18px;
  color: var(--black);
  font-family: Georgia, "Times New Roman", "SimSun", serif;
  font-size: 1.58rem;
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 5px;
  color: var(--black);
  font-size: 1.01rem;
  line-height: 1.38;
}

.hero-subtitle {
  max-width: 620px;
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.hero-subtitle strong {
  color: var(--black);
  font-weight: 780;
}

.hero-actions,
.contact-actions,
.pub-links,
.filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.button,
.filter-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--black);
  border-radius: 0;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 760;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.button {
  padding: 7px 14px;
}

.button:hover,
.filter-button:hover {
  transform: translate(-2px, -2px);
  text-decoration: none;
  box-shadow: 4px 4px 0 #000;
}

.button.primary,
.filter-button.active {
  background: #000;
  color: #fff;
}

.button.ghost,
.button.secondary {
  color: #000;
}

.section {
  margin-top: 18px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
}

.intro-band,
.muted,
.profile-strip {
  background: #ffffff;
}

.section-grid,
.two-column,
.contact {
  display: block;
}

.prose {
  color: var(--ink);
}

.prose p {
  margin-bottom: 14px;
}

.section-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2,
.section-heading p {
  margin-bottom: 0;
}

.section-heading.with-tools > div:first-child {
  min-width: 0;
}

.interest-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.tile,
.publication,
.timeline-item,
.profile-block {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.tile {
  position: relative;
  min-height: 88px;
  padding: 17px 0 17px 94px;
  border-bottom: 1px solid var(--line);
}

.tile:last-child {
  border-bottom: 0;
}

.tile-index {
  position: absolute;
  top: 17px;
  left: 0;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  font-size: 0.78rem;
  font-weight: 850;
}

.tile-icon {
  position: absolute;
  top: 17px;
  left: 42px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #000;
  background: #fff;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.14);
}

.tile-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: #000;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.tile p,
.publication p,
.timeline-item p,
.profile-block p,
.contact p {
  color: var(--ink-soft);
}

.news-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-list li {
  display: grid;
  grid-template-columns: 32px 112px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

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

.news-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  align-self: start;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  font-size: 0.78rem;
  line-height: 1;
  transform: rotate(-6deg);
}

.news-list time {
  color: #000;
  font-size: 0.86rem;
  font-weight: 850;
  white-space: nowrap;
}

.filter-group {
  justify-content: flex-end;
}

.filter-button {
  min-width: 82px;
  padding: 6px 11px;
}

.publication-list {
  display: grid;
  gap: 0;
}

.publication {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.publication:last-child {
  border-bottom: 0;
}

.publication::before {
  grid-column: 1;
  grid-row: 1;
  width: 76px;
  height: 58px;
  margin-top: 3px;
  border: 1px solid #000;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.14), transparent 46%),
    repeating-linear-gradient(0deg, #fff 0 8px, rgba(0, 0, 0, 0.08) 8px 9px);
  content: "";
}

.publication.has-logo::before {
  display: none;
}

.publication.is-hidden {
  display: none;
}

.pub-year {
  grid-column: 1;
  grid-row: 1;
  z-index: 1;
  align-self: start;
  padding: 0;
  color: #000;
  font-size: 0.82rem;
  font-weight: 850;
}

.pub-year img {
  display: block;
  width: 138px;
  height: 74px;
  border: 1px solid #000;
  background: #fff;
  object-fit: contain;
  object-position: center;
  padding: 8px;
}

.pub-body {
  grid-column: 2;
}

.venue {
  margin-bottom: 0;
  color: #000;
  font-weight: 760;
}

.pub-links a {
  padding: 4px 8px;
  border: 1px solid #000;
  background: #fff;
  font-size: 0.86rem;
}

.timeline {
  display: grid;
  gap: 0;
}

.timeline-item {
  position: relative;
  padding: 17px 0 17px 24px;
  border-bottom: 1px solid var(--line);
}

.timeline-item:last-child {
  border-bottom: 0;
}

.timeline-item::before {
  position: absolute;
  top: 25px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #000;
  content: "";
}

.timeline-date {
  display: inline-block;
  margin-bottom: 6px;
  color: #000;
  font-size: 0.86rem;
  font-weight: 850;
}

.profile-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.profile-block {
  padding: 0;
}

.profile-block + .profile-block {
  padding-left: 26px;
  border-left: 1px solid var(--line);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.contact-actions {
  justify-content: flex-start;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 46px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #fff;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  max-width: min(320px, calc(100vw - 40px));
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  background: #000;
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1240px) {
  .site-header {
    right: 18px;
    left: 18px;
  }

  main,
  .site-footer {
    width: min(980px, calc(100vw - 36px));
    margin-inline: auto;
  }
}

@media (max-width: 980px) {
  .site-header {
    position: sticky;
    top: 0;
    display: flex;
    right: 0;
    left: 0;
    width: 100%;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    border-width: 0 0 1px;
    border-radius: 0;
    background: rgba(6, 6, 6, 0.92);
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    margin: 0;
    font-size: 0.9rem;
  }

  .brand strong,
  .brand > span > .lang-zh {
    font-size: 1rem;
  }

  .brand small {
    display: none;
  }

  .nav-toggle {
    display: grid;
    width: 38px;
    height: 38px;
    margin-left: auto;
    place-items: center;
    border: 1px solid var(--inverse-line);
    border-radius: 0;
    background: transparent;
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 17px;
    height: 2px;
    margin: 2px 0;
    background: #fff;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    margin: 0;
    padding: 12px 18px 16px;
    border-bottom: 1px solid var(--inverse-line);
    background: rgba(6, 6, 6, 0.96);
  }

  .site-nav.is-open {
    display: grid;
  }

  .lang-switch {
    margin-top: 0;
  }

  main,
  .site-footer {
    width: auto;
    margin-left: 0;
    padding-inline: 18px;
  }

  main {
    padding-top: 24px;
  }

  .doodle-strip {
    display: none;
  }

  .hero {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 22px;
    padding: 22px;
  }

  .hero-image {
    width: 132px;
    height: 132px;
    box-shadow: 8px 8px 0 #111;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 14.5px;
  }

  .site-header {
    flex-wrap: wrap;
  }

  .hero,
  .section {
    border-radius: 20px;
  }

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

  .hero-image {
    width: 132px;
    height: 132px;
  }

  h1 {
    font-size: 2.5rem;
  }

  .section {
    padding: 22px;
  }

  .section-heading {
    display: grid;
  }

  .filter-group {
    justify-content: flex-start;
  }

  .news-list li,
  .publication {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .news-icon {
    margin-bottom: 4px;
  }

  .publication::before {
    display: none;
  }

  .pub-year,
  .pub-body {
    grid-column: 1;
  }

  .pub-year {
    padding: 0;
  }

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

  .profile-block + .profile-block {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 20px;
  }

  .contact-actions .button {
    width: 100%;
  }

  .site-footer {
    display: grid;
  }
}
