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

:root {
  --text: #1a1a1a;
  --text-secondary: #555;
  --accent: #1558b0;
  --border: #d0d0d0;
  --bg: #ffffff;
  --bg-subtle: #f7f7f7;
  --max-width: 820px;
}

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

body {
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC",
    "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

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

a:hover {
  text-decoration: underline;
}

/* ===== Layout ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 64px;
}

/* ===== Header / Profile ===== */
.profile {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.profile-photo {
  width: 130px;
  height: 130px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-info h1 {
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
}

.profile-info .affiliation {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.contact-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 0.9rem;
}

.contact-links a {
  color: var(--text);
}

.contact-links a:hover {
  color: var(--accent);
}

/* ===== Bio ===== */
.bio {
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ===== Highlight box (recruiting) ===== */
.highlight-box {
  border-left: 3px solid var(--accent);
  background: var(--bg-subtle);
  padding: 12px 16px;
  margin: 20px 0 8px;
  font-size: 0.92rem;
  line-height: 1.7;
}

.highlight-box strong {
  color: #c0392b;
}

/* ===== Section headings ===== */
section {
  margin-top: 32px;
}

h2 {
  font-size: 1.2rem;
  font-weight: 700;
  border-bottom: 2px solid var(--text);
  padding-bottom: 4px;
  margin-bottom: 14px;
}

/* ===== News ===== */
.news-list {
  list-style: none;
  font-size: 0.92rem;
}

.news-list li {
  padding: 3px 0;
  line-height: 1.6;
}

.news-list .date {
  display: inline-block;
  width: 90px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

/* ===== Publication filters ===== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.filter-btn {
  font-family: inherit;
  font-size: 0.82rem;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.pub-list li {
  transition: opacity 0.2s ease;
}

.pub-list li.hidden {
  display: none;
}

/* ===== Publications ===== */
.pub-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.pub-list {
  list-style: none;
}

.pub-list li {
  margin-bottom: 14px;
  padding-left: 0;
  font-size: 0.93rem;
  line-height: 1.65;
}

.pub-list .pub-title {
  font-weight: 600;
}

.pub-list .pub-authors {
  color: var(--text-secondary);
}

.pub-list .pub-venue {
  font-weight: 600;
  color: var(--accent);
}

.pub-list .pub-note-inline {
  font-weight: 600;
  color: #c0756b;
  font-size: 0.85rem;
}

.pub-links a {
  font-size: 0.82rem;
  margin-right: 10px;
  color: var(--accent);
}

/* ===== Generic lists (experience, service, awards) ===== */
.plain-list {
  list-style: none;
  font-size: 0.93rem;
}

.plain-list li {
  padding: 3px 0;
  line-height: 1.65;
}

.plain-list .label {
  font-weight: 600;
}

/* ===== Experience with logos ===== */
.exp-list {
  list-style: none;
}

.exp-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  font-size: 0.93rem;
  line-height: 1.65;
}

.exp-list .exp-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.exp-list .label {
  font-weight: 600;
}

/* ===== Footer ===== */
footer {
  margin-top: 48px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-links {
    justify-content: center;
  }

  .container {
    padding: 28px 16px 48px;
  }
}

/* ===== Print ===== */
@media print {
  html {
    font-size: 12px;
  }

  body {
    color: #000;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  a {
    color: #000;
    text-decoration: none;
  }

  a[href]::after {
    content: none;
  }

  .highlight-box {
    border-left-color: #000;
    background: none;
  }

  h2 {
    border-bottom-color: #000;
  }

  footer {
    display: none;
  }
}
