:root {
  --primary: #2c3e50;
  --accent: #3498db;
  --text: #34495e;
  --muted: #6b7c93;
  --bg-soft: #f8f9fa;
  --line: #e7edf3;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.7;
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.site-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.topnav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.topnav a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

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

.layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  padding: 36px 0 56px;
}

.sidebar {
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 24px;
  align-self: start;
  position: sticky;
  top: 86px;
}

.profile-photo {
  width: 100%;
  border-radius: 12px;
  display: block;
  margin-bottom: 18px;
}

.sidebar h1 {
  margin: 0 0 10px;
  font-size: 2rem;
  color: var(--primary);
}

.title {
  color: var(--muted);
  margin: 0 0 20px;
}

.info-block {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
  font-size: 0.96rem;
}

.label {
  font-weight: 700;
  color: var(--primary);
}

.content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 28px;
}

.card h2 {
  margin: 0 0 16px;
  color: var(--primary);
  font-size: 1.55rem;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.section-head h2 {
  margin-bottom: 0;
  flex: 1;
}

.tip {
  color: var(--accent);
  font-size: 0.92rem;
  white-space: nowrap;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-list span {
  background: #eef6fd;
  color: var(--accent);
  border: 1px solid #d7eaf9;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.95rem;
}

.pub-item {
  padding: 14px 0;
  border-bottom: 1px solid #edf2f7;
}

.pub-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pub-item h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  color: var(--primary);
}

.authors,
.meta {
  margin: 0;
  color: #566574;
}

.badge {
  color: #d32f2f;
  font-weight: 700;
  margin-right: 8px;
}

.clean-list {
  margin: 0;
  padding-left: 20px;
}

.clean-list li + li {
  margin-top: 10px;
}

a {
  color: var(--accent);
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}


.publications-card {
  padding-top: 22px;
}

.pub-entry {
  padding: 18px 0 16px;
  border-bottom: 1px solid #e9ecef;
}

.pub-entry:first-of-type {
  padding-top: 6px;
}

.pub-entry:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pub-title {
  margin: 0 0 6px;
  color: #1f5fbf;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
}

.pub-entry .authors {
  margin: 0 0 4px;
  color: #555;
  font-size: 0.98rem;
}

.pub-meta {
  margin: 0;
  font-size: 0.96rem;
  color: #666;
}

.pub-rank {
  color: #d62828;
  font-weight: 700;
  margin-right: 10px;
  text-transform: uppercase;
}

.pub-note {
  margin-left: 6px;
}

.highlight-red {
  color: #d62828;
  font-weight: 700;
}
