@font-face {
  font-family: 'ObfFont';
  src: url('fonts/obf.woff2') format('woff2');
  font-display: block;
}

/* 覆盖 SVG 内联 font-family，确保混淆字体生效 */
svg text { font-family: 'ObfFont', serif !important; }

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:     #3b5bdb;
  --accent-lt:  #e8eef8;
  --preprint:   #6c757d;
  --preprint-lt:#f1f3f5;
  --text:       #212529;
  --muted:      #6c757d;
  --border:     #dee2e6;
  --bg:         #ffffff;
  --card-bg:    #fafbfd;
  --radius:     10px;
  --shadow:     0 2px 12px rgba(0,0,0,.07);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'ObfFont', 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: #f4f6fb;
  line-height: 1.7;
  padding: 2rem 1rem 4rem;
}

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

/* ── Layout ── */
.container {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* ── Profile ── */
.profile {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 2.2rem;
}

.avatar-wrap {
  flex-shrink: 0;
}

.avatar-placeholder {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  background: #dde4f0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--border);
}

.avatar-placeholder svg {
  width: 80px;
  height: 80px;
}

.profile-info h1 {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.name-zh {
  font-family: 'ObfFont', 'Crimson Pro', 'Noto Serif SC', serif;
  font-size: 1.2rem;
  color: var(--muted);
  font-weight: 400;
  margin-left: 0.4rem;
}

.affiliation, .advisor-line {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.links {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pill {
  display: inline-block;
  padding: 0.28rem 0.75rem;
  border: 1.5px solid var(--accent);
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 500;
  transition: background .15s, color .15s;
  text-decoration: none;
}

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

.pill-inactive {
  border-color: var(--border);
  color: var(--muted);
  cursor: default;
  pointer-events: none;
  opacity: 0.65;
}

/* ── Sections ── */
section {
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.8rem 2.2rem;
}

.sec-title {
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 1.1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-lt);
}

/* ── Bio ── */
.bio {
  font-size: 0.96rem;
  color: #343a40;
}

/* ── News ── */
.news-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.news-list li {
  display: flex;
  gap: 1rem;
  font-size: 0.92rem;
  align-items: baseline;
}

.news-date {
  flex-shrink: 0;
  width: 5.5rem;
  font-weight: 500;
  color: var(--accent);
  font-size: 0.85rem;
}

/* ── Publication Cards ── */
.pub-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.pub-card {
  position: relative;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem 1rem;
  margin-bottom: 1.1rem;
  background: var(--card-bg);
  transition: box-shadow .2s;
}

.pub-card:last-child { margin-bottom: 0; }

.pub-card:hover {
  box-shadow: 0 4px 18px rgba(59,91,219,.10);
  border-color: #b3c1f0;
}

.pub-card.featured {
  border-left: 4px solid var(--accent);
}

.pub-card.preprint {
  border-left: 4px solid #adb5bd;
}

.pub-venue-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  padding: 0.18rem 0.55rem;
  margin-bottom: 0.55rem;
}

.pub-venue-badge.preprint-badge {
  background: var(--preprint);
}

.pub-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.3rem;
}

.pub-title a { color: var(--text); }
.pub-title a:hover { color: var(--accent); text-decoration: none; }

.pub-authors {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.pub-authors strong { color: var(--text); font-weight: 600; }

.pub-venue-full {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.pub-abstract {
  font-size: 0.85rem;
  color: #495057;
  line-height: 1.6;
  margin-bottom: 0.7rem;
  border-left: 3px solid var(--border);
  padding-left: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pub-links {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.pub-links a {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  background: var(--accent-lt);
  color: var(--accent);
  transition: background .15s;
}

.pub-links a:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

/* ── Education ── */
.edu-item {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.edu-logo {
  flex-shrink: 0;
}

.edu-degree {
  font-weight: 600;
  font-size: 0.97rem;
}

.edu-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  background: #d3f9d8;
  color: #2b8a3e;
  border-radius: 4px;
  padding: 0.1rem 0.45rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.edu-school {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* ── Footer ── */
footer {
  text-align: center;
  font-size: 0.8rem;
  color: #adb5bd;
  padding-top: 0.5rem;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1.2rem;
  }
  .links { justify-content: center; }
  section { padding: 1.4rem 1.2rem; }
  .news-list li { flex-direction: column; gap: 0.1rem; }
  .news-date { width: auto; }
}
