:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #1e2430;
  --muted: #5c677d;
  --line: #d9dee8;
  --accent: #1f4b99;
  --accent-soft: #eaf0fb;
  --shadow: 0 10px 30px rgba(18, 29, 55, 0.08);
  --max: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Noto Sans SC", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

.nav a:hover { text-decoration: none; }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.narrow { max-width: 760px; }

.site-header {
  position: relative;
  isolation: isolate;
  overflow: clip;
  border-bottom: 1px solid var(--line);
  background-color: var(--bg);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto;
}

/* Full-bleed photo at intrinsic aspect ratio (width 100%, height auto). 10% transparent ≈ opacity 0.9 */
.site-header-bg-img {
  grid-column: 1 / -1;
  grid-row: 1;
  width: 100%;
  height: auto;
  opacity: 0.9;
  pointer-events: none;
  user-select: none;
  display: block;
}

.site-header > .container {
  grid-column: 1 / -1;
  grid-row: 1;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(var(--max), calc(100% - 40px));
  justify-self: center;
}

.site-header--no-hero-bg .site-header-bg-img {
  display: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  margin: 0 -10px;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(217, 222, 232, 0.75);
  backdrop-filter: blur(10px);
}

.brand a {
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 999px;
}

.nav a:hover {
  background: var(--accent-soft);
  color: var(--text);
}

.hero {
  padding: 64px 0 48px;
}

.hero-panel {
  margin: 0 -10px;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(217, 222, 232, 0.75);
  backdrop-filter: blur(10px);
}

.hero-panel-main {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

.hero-avatar {
  display: block;
  width: clamp(120px, 22vw, 200px);
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(217, 222, 232, 0.65);
  object-fit: cover;
  aspect-ratio: 1;
  flex: 0 0 auto;
}

.hero-text {
  flex: 1 1 260px;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  backdrop-filter: none;
}

.hero-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 20px;
}

.hero-title-row h1 {
  flex: 1 1 200px;
  min-width: 0;
  margin: 0;
}

.hero-links {
  margin-top: 0;
  flex: 0 1 auto;
  justify-content: flex-end;
  align-self: flex-start;
}

.hero-headline,
.hero-text h1 {
  text-shadow: 0 1px 18px rgba(255, 255, 255, 0.85);
}

.hero-panel-about {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(217, 222, 232, 0.85);
}

.hero-panel-about p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.hero-panel-about p + p {
  margin-top: 10px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h1 span {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--muted);
}

.subtitle {
  margin: 22px 0 0;
  max-width: none;
  font-size: 1.08rem;
  color: var(--muted);
}

.hero-headline {
  margin: 14px 0 0;
  max-width: none;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.45;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text);
}

.subtitle + .subtitle {
  margin-top: 14px;
}

.subtitle a {
  font-weight: 650;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}


.pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
}

.pill:hover {
  background: var(--accent-soft);
  border-color: #c8d6f0;
  text-decoration: none;
}

.section {
  padding: 64px 0;
}

.section.alt {
  background: #fbfcfe;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

h2 {
  margin: 0 0 22px;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.hint {
  margin: -12px 0 24px;
  color: var(--muted);
}

.card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

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

.timeline li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  padding: 6px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.time {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  font-size: 0.95rem;
}

.event {
  color: var(--text);
  line-height: 1.25;
  font-size: 0.98rem;
}

.pub-list {
  display: grid;
  gap: 16px;
}

.pub {
  display: grid;
  grid-template-columns: clamp(220px, 26vw, 320px) 1fr;
  gap: 16px;
  padding: 18px 18px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  align-items: start;
}

.pub.pub-no-media {
  grid-template-columns: 1fr;
}

.pub-body {
  min-width: 0;
}

.pub-media {
  display: block;
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(1200px 400px at 10% 0%, rgba(31, 75, 153, 0.14) 0%, rgba(31, 75, 153, 0) 60%),
    radial-gradient(900px 300px at 90% 30%, rgba(72, 175, 239, 0.18) 0%, rgba(72, 175, 239, 0) 55%),
    linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
  color: var(--text);
  position: relative;
  align-self: start;
}

.pub-media:hover {
  border-color: #c8d6f0;
  box-shadow: var(--shadow);
}

.pub-media-inner {
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px 12px 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  z-index: 2;
}

.pub-media-video {
  background: #000;
}

.pub-media-image {
  background: #000;
}

.pub-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  display: block;
}

.pub-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: saturate(1.05) contrast(1.05);
  display: block;
  pointer-events: none;
}

.pub-media-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0.50) 100%);
  z-index: 1;
}

.pub-media-video .pub-media-tag,
.pub-media-video .pub-media-title {
  color: rgba(255, 255, 255, 0.92);
}

.pub-media-video .pub-media-tag {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.22);
}

.pub-media-tag {
  width: fit-content;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(217, 222, 232, 0.9);
  color: var(--muted);
}

.pub-media-title {
  font-weight: 800;
  letter-spacing: -0.01em;
}

.pub-title {
  margin: 0 0 6px;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.pub-authors,
.pub-venue {
  margin: 0;
  color: var(--muted);
}

.pub-venue { margin-top: 4px; }

.pub-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-weight: 600;
  text-transform: lowercase;
}

.btn:hover {
  background: var(--accent-soft);
  border-color: #c8d6f0;
}

.btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

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

.contact-list li {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list span {
  color: var(--muted);
}

.wechat-contact {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.wechat-qr {
  width: 140px;
  height: 140px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  object-fit: cover;
}

.wechat-hint {
  color: var(--muted);
  max-width: 420px;
}

.site-footer {
  padding: 28px 0 36px;
  color: var(--muted);
}

.site-footer p { margin: 0; }

@media (max-width: 640px) {
  .topbar { padding: 14px 0; }
  .nav { justify-content: flex-start; }
  .hero { padding: 46px 0 40px; }
  .hero-panel-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero-text { text-align: center; }
  .hero-title-row {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-title-row h1 {
    flex: none;
    text-align: center;
  }
  .hero-links {
    width: 100%;
    justify-content: flex-end;
    align-self: stretch;
  }
  .hero-panel-about { text-align: left; }
  .section { padding: 48px 0; }
  .timeline li {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 14px;
  }
  .pub {
    grid-template-columns: 1fr;
  }
  .contact-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
