:root {
  --bg: #f5efe2;
  --bg-deep: #e8dcc6;
  --surface: rgba(255, 251, 243, 0.74);
  --surface-strong: rgba(255, 251, 243, 0.92);
  --ink: #182234;
  --muted: #4f5d73;
  --accent: #204d8d;
  --accent-soft: #b4c9e9;
  --accent-warm: #bc3d22;
  --border: rgba(24, 34, 52, 0.14);
  --shadow: 0 24px 60px rgba(24, 34, 52, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(188, 61, 34, 0.14), transparent 34%),
    radial-gradient(circle at top right, rgba(32, 77, 141, 0.16), transparent 30%),
    linear-gradient(180deg, #faf6ef 0%, var(--bg) 52%, var(--bg-deep) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)),
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.25) 0, transparent 12%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.18) 0, transparent 14%);
  mix-blend-mode: soft-light;
}

.page-shell {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 48px;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 10;
  margin-top: 12px;
  padding: 14px 18px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  background: rgba(255, 251, 243, 0.78);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.nav a,
.paper-links a,
.button {
  text-decoration: none;
}

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

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero,
.section {
  margin-top: 28px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero {
  min-height: 0;
}

.eyebrow,
.section-kicker,
.badge,
.role,
.info-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
}

.eyebrow,
.section-kicker {
  color: var(--accent);
  margin: 0 0 16px;
  font-weight: 700;
}

.hero h1,
.section h2,
.paper-card h3 {
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.3rem, 4.6vw, 3.8rem);
  line-height: 1.02;
}

.hero h1 span {
  display: block;
  margin-top: 10px;
  color: var(--accent-warm);
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  letter-spacing: 0.06em;
}

.hero-text {
  max-width: 56ch;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-subtext {
  margin: 14px 0 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.8;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.pill-row span,
.badge,
.role {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(24, 34, 52, 0.1);
}

.hero-actions,
.paper-links,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.paper-links a:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: #fffdf6;
  box-shadow: 0 14px 30px rgba(32, 77, 141, 0.25);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  border: 1px solid rgba(24, 34, 52, 0.12);
}

.panel-card,
.paper-card,
.contact-card {
  background: var(--surface-strong);
  border: 1px solid rgba(24, 34, 52, 0.1);
  border-radius: 24px;
  padding: 20px;
}

.panel-text,
.about-copy p,
.paper-card p,
.project-copy p,
.contact-card p,
.info-value,
.contact-note,
.site-footer {
  color: var(--muted);
}

.panel-title {
  margin: 0 0 10px;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-warm);
}

.section-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 22px;
}

.section h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.05;
}

.about-grid,
.project-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.about-copy p,
.project-copy p,
.paper-card p,
.contact-card p {
  margin: 0 0 16px;
  line-height: 1.8;
}

.about-list {
  display: grid;
  gap: 14px;
}

.info-item {
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.58);
  border-radius: 18px;
  border: 1px solid rgba(24, 34, 52, 0.08);
}

.info-label {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
}

.publication-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.paper-card {
  display: grid;
  gap: 14px;
}

.paper-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(24, 34, 52, 0.08);
  background: rgba(255, 255, 255, 0.6);
}

.scholar-note {
  margin-top: 18px;
  padding: 18px 20px;
  background: rgba(255, 251, 243, 0.76);
  border: 1px dashed rgba(24, 34, 52, 0.16);
  border-radius: 20px;
}

.scholar-note p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
}

.paper-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  color: var(--accent);
}

.role {
  color: var(--accent-warm);
}

.paper-card h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.28;
}

.paper-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.paper-links a {
  color: var(--ink);
  padding: 10px 14px;
  background: rgba(32, 77, 141, 0.08);
  border-radius: 999px;
  border: 1px solid rgba(32, 77, 141, 0.15);
  transition: transform 160ms ease, background 160ms ease;
}

.project-intro {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.8;
}

.project-copy-full {
  grid-column: 1 / -1;
}

.project-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 251, 243, 0.82);
  border: 1px solid rgba(24, 34, 52, 0.08);
}

.project-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(24, 34, 52, 0.08);
}

.project-card h3 {
  margin: 12px 0 10px;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  font-size: 1.2rem;
  line-height: 1.25;
}

.project-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.75;
}

.project-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(32, 77, 141, 0.08);
  border: 1px solid rgba(32, 77, 141, 0.15);
  color: var(--accent);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-links a {
  color: var(--ink);
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  border: 1px solid rgba(24, 34, 52, 0.1);
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.project-links a:hover {
  transform: translateY(-2px);
}

.contact-card {
  padding: 24px;
}

.contact-note {
  align-self: center;
}

.site-footer {
  text-align: center;
  padding: 22px 0 8px;
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 500ms ease, transform 500ms ease;
}

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

@media (max-width: 900px) {
  .about-grid,
  .project-grid,
  .publication-grid,
  .project-cards {
    grid-template-columns: 1fr;
  }

  .site-header {
    padding: 12px 14px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 18px, 1140px);
  }

  .site-header {
    position: static;
    margin-top: 10px;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .section {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .paper-card h3 {
    font-size: 1.2rem;
  }
}
