/* =========================================================================
   Bai Lab Portal — Page-Specific Styles
   门户特有样式：论文条目、年份标题、团队成员卡片、新闻列表
   ========================================================================= */

/* ---- Publications List ---- */
.pub-year-heading {
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 700;
  padding-bottom: 8px;
  margin: 32px 0 12px;
  border-bottom: 2px solid var(--primary-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pub-year-heading::before {
  content: "";
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, var(--primary), var(--teal));
  border-radius: 2px;
}

.pub-entry {
  margin-bottom: 8px;
  transition: var(--transition);
}

.pub-entry:hover {
  border-color: var(--primary-line);
}

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

.pub-authors {
  font-size: 0.9rem;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.6;
}

.pub-authors strong {
  color: var(--ink);
}

.pub-title {
  margin: 6px 0 4px;
  font-weight: 600;
  font-size: 0.95rem;
}

.pub-title a {
  color: var(--primary-dark);
}

.pub-title a:hover {
  color: var(--primary);
}

.pub-journal {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

.pub-journal em {
  font-style: italic;
}

/* ---- News Cards ---- */
.news-card {
  padding: 20px 22px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  margin-bottom: 12px;
}

.news-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary-line);
}

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

.news-card-date {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 6px;
  font-family: var(--font-mono);
}

.news-card-title {
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
}

.news-card-text {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ---- Team / People Cards ---- */
.team-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.team-section-title {
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 700;
  padding-bottom: 8px;
  margin: 0;
  border-bottom: 2px solid var(--primary-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}

.team-section-title::before {
  content: "";
  width: 4px;
  height: 18px;
  background: linear-gradient(180deg, var(--primary), var(--teal));
  border-radius: 2px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.team-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.team-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary-line);
}

.team-card-name {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 600;
}

.team-card-email {
  color: var(--muted);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  word-break: break-all;
}

.team-card-role {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 500;
}

/* ---- PI Section (featured, large) ---- */
.pi-section {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding: 24px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.pi-photo {
  width: 100%;
  border-radius: var(--radius);
}

.pi-info h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 700;
}

.pi-title {
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0 0 12px;
}

.pi-bio {
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0 0 8px;
}

.pi-email {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-family: var(--font-mono);
}

/* ---- 404 Page ---- */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 28px;
  gap: 16px;
}

.error-code {
  font-size: 6rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  font-family: var(--font-mono);
}

.error-message {
  font-size: 1.2rem;
  color: var(--ink-2);
  max-width: 50ch;
}

/* ---- Software Dropdown Category ---- */
.nav-dropdown-category-label {
  display: block;
  padding: 12px 12px 4px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
}

.nav-dropdown-divider {
  height: 1px;
  background: var(--line);
  margin: 6px 8px;
}

/* ---- Research Stats (on home page hero or below) ---- */
.research-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.research-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 20px 16px;
}

.research-stat-value {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
}

.research-stat-label {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}
