/* ============================================================
   赵钦 · 武汉大学口腔医学院  —  Academic Editorial Style
   ============================================================ */

:root {
  --bg-page: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F1F5F9;
  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --brand-navy: #1E3A5F;
  --badge-navy: #2B4C7E;
  --accent-teal: #1B7A6E;
  --if-bg: #E6F4EA;
  --if-text: #137333;
  --border-hairline: #E2E8F0;
  --border-divider: #EDF2F7;
  --shadow-hairline: 0 1px 2px rgba(15, 23, 42, 0.03);
  --header-h: 60px;
  --max-w: 1000px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-page);
  color: var(--text-secondary);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.en,
.pub-title,
.pub-authors,
.pub-journal,
.pub-vol,
.if-badge,
.tag,
.stat-num,
.pub-num,
.kv dd,
.years,
.pill {
  font-family: "Inter", "Plus Jakarta Sans", -apple-system, "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

ul, ol {
  list-style: none;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-hairline);
}

.header-inner {
  max-width: var(--max-w);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-navy);
  letter-spacing: 0.04em;
}

.brand-divider {
  width: 1px;
  height: 16px;
  background: var(--border-hairline);
}

.brand-org {
  font-size: 14px;
  color: var(--text-muted);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.site-nav a {
  font-size: 13.5px;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  padding: 4px 0;
  border-bottom: 1.5px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover {
  color: var(--brand-navy);
  border-bottom-color: var(--brand-navy);
}

.btn-mirprism {
  flex-shrink: 0;
  background: #3E506E;
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.btn-mirprism:hover {
  background: #33445F;
}

/* ---------- Layout ---------- */

main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 72px;
}

.section {
  padding-top: 44px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.section-title {
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-navy);
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.section-title .bar {
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--accent-teal);
  margin-right: 10px;
  flex-shrink: 0;
}

.panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 10px;
  padding: 18px 22px;
  box-shadow: var(--shadow-hairline);
}

/* ---------- Hero / Profile ---------- */

.hero {
  padding-top: 36px;
}

.hero-grid {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
  padding: 30px 32px;
  box-shadow: var(--shadow-hairline);
}

.hero-photo {
  flex-shrink: 0;
}

.hero-photo img {
  width: 190px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.hero-info {
  flex: 1;
  min-width: 0;
}

.hero-name {
  font-size: 34px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.12em;
  line-height: 1.2;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
}

.pill {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-navy);
  background: #F5F8FC;
  border: 1px solid #C7D5E8;
  border-radius: 5px;
  padding: 2px 10px;
  letter-spacing: 0.02em;
}

.pill-accent {
  color: var(--accent-teal);
  border-color: #BFE0DB;
  background: #F2FAF8;
}

.bio {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  text-align: justify;
  margin-bottom: 20px;
}

.bio em {
  font-style: italic;
  color: var(--brand-navy);
  font-weight: 500;
}

/* Key-value divided list */

.kv {
  border-top: 1px solid var(--border-divider);
}

.kv-row {
  display: flex;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-divider);
}

.kv-row:last-child {
  border-bottom: none;
}

.kv dt {
  flex-shrink: 0;
  width: 90px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

.kv dd {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.7;
}

/* ---------- Research directions ---------- */

.directions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.direction {
  display: flex;
  align-items: baseline;
  gap: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 10px;
  padding: 16px 20px;
  box-shadow: var(--shadow-hairline);
}

.direction-num {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-navy);
  letter-spacing: 0.04em;
}

.direction-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.6;
}

/* ---------- Bento: talents & projects ---------- */

.bento {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 18px;
  align-items: start;
}

.bento-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.panel-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-navy);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.talent-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-divider);
  font-size: 14.5px;
  color: var(--text-primary);
}

.talent-list li:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}

.talent-list li:first-child {
  padding-top: 2px;
}

.talent-year {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--badge-navy);
  font-variant-numeric: tabular-nums;
  background: var(--bg-subtle);
  border-radius: 4px;
  padding: 1px 8px;
}

.talent-name {
  font-weight: 500;
  line-height: 1.6;
}

.proj-group + .proj-group {
  margin-top: 16px;
}

.proj-label {
  display: inline-block;
  background: var(--brand-navy);
  color: #FFF;
  font-size: 12px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.proj-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-divider);
  font-size: 14.5px;
  color: var(--text-primary);
  line-height: 1.6;
}

.proj-list li:last-child {
  border-bottom: none;
}

.proj-name {
  font-weight: 500;
}

.years {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- Publications ---------- */

.stat-banner {
  display: flex;
  align-items: stretch;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 10px;
  box-shadow: var(--shadow-hairline);
  margin-bottom: 18px;
  overflow: hidden;
}

.stat {
  flex: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  padding: 15px 12px;
  border-right: 1px solid var(--border-divider);
}

.stat:last-child {
  border-right: none;
}

.stat-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--brand-navy);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.stat-label {
  font-size: 13.5px;
  color: var(--text-muted);
}

.pub-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
  padding: 0 24px;
  box-shadow: var(--shadow-hairline);
}

.pub {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  transition: background 0.15s ease;
}

.pub + .pub {
  border-top: 1px solid var(--border-divider);
}

/* 折叠区首篇（第 12 篇）与前文共用分隔线，仅展开后可见 */
#pub-more .pub:first-child {
  border-top: 1px solid var(--border-divider);
}

.pub:hover {
  background: var(--bg-page);
}

.pub-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  border-radius: 6px;
  background: var(--badge-navy);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

.pub-body {
  flex: 1;
  min-width: 0;
}

.pub-title {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.pub-meta {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-muted);
}

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

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

.sep {
  margin: 0 6px;
  color: var(--text-muted);
}

.pub-journal {
  font-style: italic;
  font-weight: 600;
  color: var(--brand-navy);
}

.pub-vol {
  color: var(--text-muted);
}

.tag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  vertical-align: baseline;
  color: var(--brand-navy);
  background: #F5F8FC;
  border: 1px solid #C7D5E8;
}

.if-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  vertical-align: baseline;
  background: var(--if-bg);
  color: var(--if-text);
}

.pub-more {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease;
}

.pub-toggle-wrap {
  display: flex;
  justify-content: center;
  padding: 18px 0 2px;
}

.pub-toggle {
  appearance: none;
  cursor: pointer;
  background: var(--bg-page);
  border: 1px solid var(--border-hairline);
  border-radius: 8px;
  color: var(--badge-navy);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  padding: 9px 22px;
  letter-spacing: 0.02em;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.pub-toggle:hover {
  background: var(--bg-subtle);
  border-color: #CBD5E1;
}

/* ---------- Timeline (work history) ---------- */

.timeline {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 10px;
  padding: 8px 22px;
  box-shadow: var(--shadow-hairline);
}

.tl-item {
  display: flex;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-divider);
}

.tl-item:last-child {
  border-bottom: none;
}

.tl-when {
  flex-shrink: 0;
  width: 128px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--badge-navy);
  font-variant-numeric: tabular-nums;
  padding-top: 1px;
}

.tl-org {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-primary);
}

.tl-role {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ---------- Patents & awards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.card-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 10px;
  padding: 16px 20px;
  box-shadow: var(--shadow-hairline);
  transition: background 0.15s ease;
}

.card-item:hover {
  background: var(--bg-page);
}

.card-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.card-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.6;
}

.card-meta {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  font-variant-numeric: tabular-nums;
}

.card-authors {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.card-authors .me {
  color: var(--text-primary);
  font-weight: 600;
}

.tag-muted {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border-radius: 4px;
  padding: 1px 8px;
  letter-spacing: 0.04em;
}

/* ---------- Contact / footer ---------- */

.footer {
  border-top: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 24px 40px;
}

.footer-title {
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-navy);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.footer-title .bar {
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--accent-teal);
  margin-right: 10px;
}

.footer-row {
  display: flex;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-divider);
  font-size: 14.5px;
}

.footer-row:last-of-type {
  border-bottom: none;
}

.footer-label {
  flex-shrink: 0;
  width: 90px;
  color: var(--text-muted);
}

.footer-value {
  color: var(--text-primary);
  font-weight: 500;
}

.footer-value a {
  color: var(--brand-navy);
  border-bottom: 1px solid var(--border-hairline);
  transition: border-color 0.15s ease;
}

.footer-value a:hover {
  border-bottom-color: var(--brand-navy);
}

.footer-note {
  margin-top: 22px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ---------- Responsive ---------- */

@media (max-width: 920px) {
  .site-nav {
    display: none;
  }

  .bento {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 14.5px;
  }

  main {
    padding: 0 18px 56px;
  }

  .header-inner {
    padding: 0 18px;
    gap: 12px;
    justify-content: space-between;
  }

  .brand-org,
  .brand-divider {
    display: none;
  }

  .btn-mirprism {
    margin-left: auto;
    font-size: 13px;
    padding: 6px 12px;
  }

  .section {
    padding-top: 36px;
  }

  .hero {
    padding-top: 24px;
  }

  .hero-grid {
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding: 24px 20px;
  }

  .hero-photo img {
    width: 130px;
  }

  .hero-info {
    width: 100%;
  }

  .hero-name {
    font-size: 28px;
    text-align: center;
  }

  .hero-badges {
    justify-content: center;
  }

  .bio {
    font-size: 14.5px;
  }

  .kv dt {
    width: 82px;
    font-size: 14px;
  }

  .kv dd {
    font-size: 14px;
  }

  .directions {
    grid-template-columns: 1fr;
  }

  .stat-banner {
    flex-direction: column;
  }

  .stat {
    justify-content: flex-start;
    border-right: none;
    border-bottom: 1px solid var(--border-divider);
    padding: 12px 18px;
  }

  .stat:last-child {
    border-bottom: none;
  }

  .stat-num {
    font-size: 20px;
  }

  .pub-panel {
    padding: 0 16px;
    border-radius: 10px;
  }

  .pub {
    gap: 10px;
    padding: 15px 0;
  }

  .pub-title {
    font-size: 14.5px;
  }

  .pub-meta {
    font-size: 12.5px;
  }

  .tag,
  .if-badge {
    font-size: 11px;
    margin-left: 6px;
    padding: 1px 6px;
    white-space: nowrap;
  }

  .tl-item {
    flex-direction: column;
    gap: 4px;
  }

  .tl-when {
    width: auto;
  }

  .proj-list li {
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
  }

  .footer-inner {
    padding: 28px 18px 36px;
  }

  .footer-row {
    flex-direction: column;
    gap: 2px;
    padding: 10px 0;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .footer-label {
    width: auto;
    font-size: 13px;
  }
}
