:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #eef4ff;
  --text: #182033;
  --muted: #5c667a;
  --light: #7a8499;
  --border: #e3e8f2;
  --primary: #9b1c1f;
  --primary-dark: #6f1114;
  --accent: #c9a35d;
  --sdu-red: #9b1c1f;
  --sdu-gold: #c9a35d;
  --sdu-ink: #24324f;
  --shadow: 0 18px 45px rgba(23, 40, 77, 0.10);
  --radius: 22px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(155, 28, 31, 0.12) 0, transparent 30rem),
    radial-gradient(circle at 88% 10%, rgba(201, 163, 93, 0.16) 0, transparent 28rem),
    linear-gradient(180deg, #fffaf8 0%, #f6f8fc 46%, #f8fbff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.68;
  min-height: 100vh;
  position: relative;
}

.site-header, main, .footer { position: relative; z-index: 1; }

body::before {
  content: "SDU  ·  SHANDONG UNIVERSITY  ·  学无止境  气有浩然";
  position: fixed;
  left: -8vw;
  top: 40vh;
  z-index: 0;
  color: rgba(155, 28, 31, 0.045);
  font-size: clamp(2.6rem, 8vw, 8rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  white-space: nowrap;
  transform: rotate(-8deg);
  pointer-events: none;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(227, 232, 242, 0.9);
  border-top: 4px solid var(--sdu-red);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 14px;
  display: grid; place-items: center;
  color: white; font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--sdu-red), var(--sdu-gold));
  box-shadow: 0 10px 25px rgba(155, 28, 31, 0.22);
}
.brand-text strong { display: block; line-height: 1.1; }
.brand-text span { color: var(--muted); font-size: 0.86rem; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  color: var(--muted);
  font-weight: 650;
  padding: 10px 14px;
  border-radius: 999px;
}
.site-nav a:hover, .site-nav a.active {
  background: var(--surface-2);
  color: var(--primary-dark);
  text-decoration: none;
}
.nav-toggle { display: none; border: 0; background: var(--surface-2); border-radius: 12px; padding: 8px 11px; font-size: 1.35rem; }

.hero {
  padding: 70px 0 38px;
}
.hero-card {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 34px;
  align-items: center;
  border: 1px solid var(--border);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.98), rgba(255,247,242,0.94)),
    radial-gradient(circle at 100% 0%, rgba(155, 28, 31, 0.12), transparent 32rem);
  border-radius: 34px;
  padding: 42px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.hero-card:after {
  content: "";
  position: absolute;
  right: -110px;
  top: -110px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(155, 28, 31, 0.10);
}
.hero-card:before {
  content: "SDU";
  position: absolute;
  right: 38px;
  bottom: -18px;
  font-size: clamp(4rem, 12vw, 10rem);
  line-height: 1;
  font-weight: 900;
  color: rgba(155, 28, 31, 0.045);
  letter-spacing: -0.08em;
}
.hero h1 {
  margin: 0 0 4px;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}
.hero h2 { margin: 0 0 14px; font-size: 1.22rem; color: var(--muted); font-weight: 650; }
.sdu-badge {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 18px;
  color: var(--sdu-red);
  font-weight: 850;
}
.sdu-badge span {
  border: 1px solid rgba(155, 28, 31, 0.18);
  background: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  padding: 5px 11px;
  box-shadow: 0 8px 18px rgba(155, 28, 31, 0.06);
}
.hero p { max-width: 780px; margin: 0 0 16px; color: var(--muted); }
.hero-actions, .link-row, .tag-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero-actions { margin-top: 24px; }
.btn, .pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 750;
  border: 1px solid var(--border);
  background: var(--surface);
}
.btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn.primary:hover { color: #fff; background: var(--primary-dark); text-decoration: none; }
.btn:hover, .pill-link:hover { background: var(--surface-2); text-decoration: none; }

.profile-panel { position: relative; z-index: 2; }
.profile-photo {
  width: min(100%, 280px);
  aspect-ratio: 1 / 1;
  border-radius: 30px;
  overflow: hidden;
  margin-left: auto;
  border: 8px solid white;
  box-shadow: 0 22px 55px rgba(22, 37, 82, 0.18);
  background: linear-gradient(135deg, #dfeaff, #f4f7ff);
}
.profile-photo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; background: #fff; }
.profile-list {
  margin: 18px 0 0 auto;
  padding: 18px;
  max-width: 300px;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255,255,255,0.82);
}
.profile-list li { margin: 6px 0; color: var(--muted); font-size: 0.94rem; }
.profile-list strong { color: var(--text); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 20px 0 0;
}
.stat-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  background: rgba(255,255,255,0.74);
}
.stat-card strong { display: block; font-size: 2rem; line-height: 1; letter-spacing: -0.04em; }
.stat-card span { color: var(--muted); font-size: 0.92rem; }
.sdu-strip {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 14px 18px;
  border-radius: 20px;
  border: 1px solid rgba(155, 28, 31, 0.16);
  background: linear-gradient(90deg, rgba(155, 28, 31, 0.08), rgba(201, 163, 93, 0.12), rgba(255,255,255,0.74));
  color: var(--muted);
}
.sdu-strip strong { color: var(--sdu-red); }

.section { padding: 44px 0; }
.section-alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.32), rgba(155,28,31,0.035));
  border-top: 1px solid rgba(155, 28, 31, 0.08);
  border-bottom: 1px solid rgba(155, 28, 31, 0.08);
}
.section-news-home { padding-top: 36px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 20px;
}
.section h2, .page-title h1 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.7rem); letter-spacing: -0.04em; line-height: 1.15; }
.section-lead, .page-title p { color: var(--muted); max-width: 780px; margin: 10px 0 0; }
.eyebrow { color: var(--primary); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 800; margin: 0 0 8px; }

.page-title { padding: 58px 0 24px; }
.page-title .kicker { color: var(--primary); font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; }

.card-grid, .project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.research-grid { grid-template-columns: 1fr; }
.research-card, .project-card, .pub-card, .info-card {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(22, 37, 82, 0.06);
}
.research-card { display: grid; grid-template-columns: 260px 1fr; }
.research-image, .project-image, .pub-image {
  min-height: 185px;
  background: linear-gradient(135deg, #fff7f2, #f8fbff);
  padding: 14px;
}
.image-wrap { position: relative; display: grid; place-items: center; overflow: hidden; }
.image-wrap img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 230px;
  object-fit: contain;
  transition: transform 0.35s ease;
}
.research-card:hover img, .project-card:hover img, .pub-card:hover img { transform: scale(1.015); }
.image-missing:before {
  content: "Image";
  color: var(--light);
  font-weight: 800;
  letter-spacing: 0.06em;
}
.research-content, .project-content, .pub-body, .info-card { padding: 22px; }
.research-content h3, .project-content h3, .pub-card h3 { margin: 0 0 8px; line-height: 1.28; }
.research-content p, .project-content p, .pub-card p { color: var(--muted); margin: 8px 0; }
.tag-row { margin-top: 14px; }
.paper-hints {
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px dashed var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}
.paper-hints strong { color: var(--text); }
.tag-row span, .project-tag, .pub-meta span {
  display: inline-flex;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--primary-dark);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.pub-list { display: grid; gap: 16px; }
.pub-card { display: grid; grid-template-columns: 240px 1fr; }
.pub-image { min-height: 170px; }
.pub-meta { display: flex; gap: 8px; margin-bottom: 8px; }
.pub-card h3 { font-size: 1.08rem; }
.authors { font-size: 0.94rem; }
.venue { font-size: 0.94rem; font-weight: 700; }
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.filter-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-buttons button {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  padding: 9px 14px;
  font-weight: 800;
  cursor: pointer;
}
.filter-buttons button.active, .filter-buttons button:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.count { color: var(--muted); font-weight: 700; }

.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.timeline li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
}
.news-date { color: var(--primary); font-weight: 850; }

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.info-card h3 { margin-top: 0; }
.funded-card .project-tag { margin-bottom: 10px; }
.role-line { font-weight: 800; color: var(--sdu-red) !important; }
.info-card ul { margin: 10px 0 0; padding-left: 1.1rem; color: var(--muted); }

.footer {
  margin-top: 50px;
  padding: 34px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  background: rgba(255,255,255,0.7);
}
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .hero-card, .research-card, .pub-card { grid-template-columns: 1fr; }
  .profile-photo, .profile-list { margin-left: 0; }
  .stats-grid, .info-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid, .project-grid { grid-template-columns: 1fr; }
  .site-nav {
    display: none;
    position: absolute;
    top: 74px;
    right: 18px;
    left: 18px;
    flex-direction: column;
    align-items: stretch;
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 10px;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 620px) {
  .hero { padding-top: 34px; }
  .hero-card { padding: 24px; border-radius: 26px; }
  .stats-grid, .info-grid { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .section-head { align-items: start; flex-direction: column; }
}
