/* 学术风样式：低饱和配色、衬线标题、大量留白 */
:root {
  --bg: #f6f4ee;          /* 纸白背景 */
  --bg-card: #fffdf8;     /* 卡片底 */
  --ink: #2b2b2b;         /* 正文深灰 */
  --ink-soft: #5a5a5a;    /* 次要文字 */
  --accent: #2f4a3a;      /* 深墨绿主色 */
  --accent-soft: #6f8a7a; /* 墨绿浅调 */
  --line: #e3ddd0;        /* 分割线 */
  --serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 96px 24px 56px;
  border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: 720px; margin: 0 auto; }
.avatar {
  width: 96px; height: 96px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fffdf8;
  font-family: var(--serif);
  font-size: 40px;
  line-height: 96px;
  letter-spacing: 0;
}
.name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 48px;
  letter-spacing: 4px;
  margin-bottom: 12px;
  color: var(--ink);
}
.affiliation {
  font-size: 16px;
  color: var(--ink-soft);
  letter-spacing: 1px;
  margin-bottom: 22px;
}
.motto {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--accent);
  letter-spacing: 3px;
  line-height: 1.9;
}
.hero-nav {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}
.hero-nav a {
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  letter-spacing: 1px;
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.hero-nav a:hover { color: var(--accent); border-color: var(--accent); }

/* ===== 正文容器 ===== */
.container { max-width: 820px; margin: 0 auto; padding: 64px 24px 40px; }

/* ===== 板块 ===== */
.section { margin-bottom: 72px; }
.section-head { margin-bottom: 32px; }
.section-num {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--accent-soft);
  letter-spacing: 2px;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  color: var(--ink);
  margin: 6px 0 10px;
  letter-spacing: 1px;
}
.section-tag {
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 640px;
}

/* ===== 条目列表 ===== */
.entries { list-style: none; }
.entries li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.entries li:first-child { border-top: none; }
.entry-role {
  font-weight: 600;
  color: var(--ink);
  font-size: 16px;
  margin-bottom: 4px;
}
.entry-desc {
  font-size: 14.5px;
  color: var(--ink-soft);
}
.photo-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed var(--accent-soft);
  margin-left: 8px;
  font-size: 13px;
}
.photo-link:hover { border-bottom-style: solid; }

/* ===== 联系方式 ===== */
.contact { text-align: center; }
.contact .section-head { margin-bottom: 24px; }
.contact-line { color: var(--ink-soft); margin-bottom: 16px; }
.contact-email {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--accent-soft);
  padding-bottom: 4px;
}
.contact-email:hover { border-color: var(--accent); }

/* ===== 页脚 ===== */
.footer {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 32px 24px;
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.back-top {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.back-top:hover { color: var(--accent); }

/* ===== 滚动渐显 ===== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== 灯箱 ===== */
.lightbox {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(246, 244, 238, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}
.lb-figure {
  max-width: 90vw;
  max-height: 80vh;
  margin: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lb-img {
  max-width: 90vw;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transition: opacity .3s ease;
}
.lb-img.show {
  opacity: 1;
}
.lb-caption {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: 1px;
  margin-top: 14px;
  max-width: 600px;
  line-height: 1.6;
}
.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  border: none;
  background: transparent;
  color: var(--accent);
  font-family: var(--serif);
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  user-select: none;
  transition: color .2s, transform .2s;
}
.lb-close {
  top: 20px;
  right: 28px;
  font-size: 36px;
}
.lb-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 44px;
}
.lb-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 44px;
}
.lb-close:hover { color: var(--ink); }
.lb-prev:hover { color: var(--ink); transform: translateY(-50%) scale(1.1); }
.lb-next:hover { color: var(--ink); transform: translateY(-50%) scale(1.1); }

/* ===== 响应式 ===== */
@media (max-width: 600px) {
  .hero { padding: 64px 20px 40px; }
  .name { font-size: 38px; }
  .motto { font-size: 16px; letter-spacing: 2px; }
  .hero-nav { gap: 18px; }
  .container { padding: 44px 18px 24px; }
  .section { margin-bottom: 52px; }
  .section-head h2 { font-size: 22px; }
  .contact-email { font-size: 18px; }
  .lb-prev { left: 8px; font-size: 36px; }
  .lb-next { right: 8px; font-size: 36px; }
  .lb-close { top: 12px; right: 16px; font-size: 30px; }
  .lb-caption { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
