:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --line: #dbe2ea;
  --text: #0f172a;
  --muted: #57606a;
  --title: #102a43;
  --link: #2366eb;
  --accent: #3b82f6;
  --shadow: rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

a:hover,
button:hover {
  opacity: 0.92;
}

button,
.button {
  font: inherit;
}

.container {
  max-width: 1120px;
  width: 100%;
  padding: 0 32px;
  margin: 0 auto;
}

.page-shell,
.sidebar,
.sidebar-brand,
.sidebar-title,
.sidebar-nav,
.sidebar-nav a,
.page-content {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  flex-wrap: wrap;
}

.brand-name {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--title);
}

.brand-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

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

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  border: 1px solid rgba(51, 65, 85, 0.12);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  background: white;
}

.nav a.active {
  background: #eef5ff;
  border-color: rgba(56, 105, 255, 0.24);
  color: #1d4ed8;
  font-weight: 600;
}

.hero {
  background: linear-gradient(180deg, rgba(15, 77, 178, 0.95) 0%, rgba(41, 121, 255, 0.85) 100%);
  color: white;
  padding: 80px 0 60px;
}

.hero-inner {
  max-width: 1040px;
  width: min(1040px, calc(100% - 64px));
  margin: 0 auto;
  padding: 0 32px;
}

.hero-copy {
  max-width: 640px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
  text-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
}

.hero-copy .eyebrow {
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.22em;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-copy p {
  margin: 20px 0 0;
  color: rgba(255,255,255,0.92);
  max-width: 680px;
  font-size: 18px;
}

.main {
  padding: 56px 0 80px;
}

.profile-row {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 32px;
  margin: 0 auto 28px;
  max-width: 1040px;
  width: min(1040px, calc(100% - 64px));
}

.profile-card,
.photo-card,
.intro-card,
.content-card {
  background: white;
  border-radius: 24px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.07);
}

.profile-card {
  padding: 32px;
  display: grid;
  gap: 18px;
}

.profile-card h2 {
  margin: 0;
  font-size: 30px;
  color: var(--accent);
}

.profile-role {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
}

.contact-list p {
  margin: 10px 0;
  color: var(--muted);
}

.photo-card {
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-photo {
  width: 100%;
  border-radius: 24px;
  object-fit: cover;
}

.intro-card {
  margin: 0 auto 28px;
  padding: 32px;
  max-width: 1040px;
  width: min(1040px, calc(100% - 64px));
}

.intro-inner {
  display: grid;
  gap: 24px;
}

.intro-block h2 {
  margin-top: 0;
  font-size: 20px;
  color: var(--title);
}

.intro-block p,
.intro-block ul {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 15px;
}

.intro-block ul {
  padding-left: 20px;
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin: 0 auto;
  max-width: 1040px;
  width: min(1040px, calc(100% - 64px));
}

.content-card {
  padding: 32px;
}

.content-card h2 {
  margin-top: 0;
  font-size: 22px;
  color: var(--title);
}

.highlight-grid {
  display: grid;
  gap: 16px;
}

.card {
  background: #f8fbff;
  border-radius: 18px;
  padding: 18px 20px;
}

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

.content-card #latest-updates,
.card #latest-updates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.update-item {
  background: white;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 18px 20px;
  

}

.card ul li a,
.card ul li a:link,
.card ul li a:visited,
.card ul li a:hover,
.card ul li a:active {
  color: black !important;
  font-weight: bold !important;
  text-decoration: underline !important;
  background-color: transparent !important;
}

.card ul li a:not([href*="openreview.net/profile"]),
.card ul li a:not([href*="openreview.net/profile"]):link,
.card ul li a:not([href*="openreview.net/profile"]):visited,
.card ul li a:not([href*="openreview.net/profile"]):hover,
.card ul li a:not([href*="openreview.net/profile"]):active {
  color: black !important;
  font-weight: bold !important;
  text-decoration: underline !important;
  background-color: transparent !important;
}

.card ul li a[href*="openreview.net/profile"],
.card ul li a[href*="openreview.net/profile"]:link,
.card ul li a[href*="openreview.net/profile"]:visited,
.card ul li a[href*="openreview.net/profile"]:hover,
.card ul li a[href*="openreview.net/profile"]:active {
  color: inherit !important;
  font-weight: inherit !important;
  text-decoration: none !important;
  background-color: transparent !important;
}

#latest-updates .update-item {
  border-color: rgba(29, 78, 216, 0.2);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
  height: 320px;       /* 固定每个卡片高度 */
  overflow-y: auto;    /* 内容超出时可滚动 */
  box-sizing: border-box;
}

.update-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

#latest-updates .update-item h3 {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 800;
  color: #0b2a5f;
}

.update-item p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

#latest-updates .update-item p {
  font-size: 16px;
  line-height: 1.7;
  color: #334155;
}

.update-item-list {
  margin: 10px 0 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.update-item-list li + li {
  margin-top: 6px;
}

#latest-updates .update-item-list {
  font-size: 16px;
  color: #334155;
}

.update-item time {
  display: block;
  margin-top: 10px;
  color: #64748b;
  font-size: 13px;
}

.loading-text {
  margin: 0;
  color: var(--muted);
}

.footer {
  padding: 24px 0;
  color: #64748b;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 980px) {
  .profile-row,
  .section-grid {
    grid-template-columns: 1fr;
  }

  .content-card #latest-updates,
  .card #latest-updates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 28px;
  }

  .hero-copy h1 {
    font-size: 32px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .nav a {
    padding: 10px 14px;
  }

  .content-card #latest-updates,
  .card #latest-updates {
    grid-template-columns: 1fr;
  }

  #latest-updates .update-item h3 {
    font-size: 20px;
  }
}

@media (max-width: 1120px) {
  .section-grid,
  .profile-row {
    width: min(100%, calc(100% - 48px));
  }
}

@media (max-width: 860px) {
  .hero-copy h1 {
    font-size: 3rem;
  }

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

  .profile-row,
  .section-grid {
    grid-template-columns: 1fr;
  }
}
