/* ============================================================
   仇振武 学术个人主页 — 编辑感学术风格
   ============================================================ */

:root {
  --bg: #f7f5f0;            /* 暖纸白 */
  --surface: #ffffff;
  --ink: #22261f;           /* 近黑墨绿 */
  --muted: #6b7268;
  --faint: #9aa19a;
  --line: #e2ddd0;
  --accent: #3d5f4e;        /* 深森林绿 */
  --accent-soft: #edf1ea;
  --gold: #a97c3f;          /* 点缀 */
  --serif: Georgia, "Times New Roman", "Noto Serif SC", "Songti SC", SimSun, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1060px;
  --shadow: 0 1px 2px rgba(30, 40, 30, .05), 0 4px 16px rgba(30, 40, 30, .06);
}

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

html { scroll-behavior: smooth; }

/* 锚点跳转避开固定导航栏 */
section[id] { scroll-margin-top: 72px; }

body {
  background:
    linear-gradient(rgba(247, 245, 240, .93), rgba(247, 245, 240, .93)),
    url("../images/bg-map.jpg") center / cover no-repeat fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

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

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

::selection { background: var(--accent); color: #fff; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 240, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}

.brand { display: flex; align-items: baseline; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand-cn { font-family: var(--serif); font-size: 20px; font-weight: 700; letter-spacing: .06em; }
.brand-en { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; gap: 26px; }
.nav a {
  color: var(--muted); font-size: 14.5px; letter-spacing: .03em;
  padding: 6px 2px; border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav a:hover { color: var(--ink); text-decoration: none; border-color: var(--accent); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); transition: transform .2s; }

/* ---------- Hero ---------- */
.hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(237, 241, 234, .86), rgba(247, 245, 240, .97) 300px),
    url("../images/bg-map.jpg") center / cover no-repeat;
}

.hero-inner {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px;
  padding-top: 84px; padding-bottom: 72px;
  align-items: end;
}

.hero-kicker {
  font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}

.hero-name {
  font-family: var(--serif); font-size: clamp(36px, 5.5vw, 62px);
  font-weight: 700; letter-spacing: .02em; line-height: 1.15;
  white-space: nowrap;
}

.hero-en {
  font-size: 20px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted); margin-top: 10px;
}

.hero-tagline {
  margin-top: 26px; font-size: 16px; color: var(--ink);
  border-left: 3px solid var(--gold); padding-left: 14px;
}

.hero-side { text-align: right; padding-bottom: 6px; }
.hero-role { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.hero-role-en { color: var(--muted); font-size: 14px; margin-top: 6px; line-height: 1.6; }
.hero-email { margin-top: 14px; }
.hero-email a { font-size: 15px; }

/* ---------- 区块通用 ---------- */
.section { padding: 76px 0; }
.section-alt {
  background:
    linear-gradient(rgba(61, 95, 78, .82), rgba(61, 95, 78, .82)),
    url("../images/beijingtu.jpg") center / cover no-repeat fixed;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
/* 森林绿深色板块：文字浅色化 */
.section-alt .section-head { border-bottom-color: rgba(255, 255, 255, .3); }
.section-alt .section-title { color: #fff; }
.section-alt .section-en { color: rgba(255, 255, 255, .55); }
.section-alt .pub-title { color: #fff; }
.section-alt .pub-journal { color: rgba(255, 255, 255, .78); }
.section-alt .pub-link a { color: #e0cfa6; }
.section-alt .pub-link a:hover { border-color: #e0cfa6; }
.section-alt .pub-abstract summary { color: rgba(255, 255, 255, .88); }
.section-alt .summary-hint { color: rgba(255, 255, 255, .6); border-color: rgba(255, 255, 255, .35); }
.section-alt .pub-abstract > p {
  background: rgba(255, 255, 255, .1); border-left-color: var(--gold);
  color: rgba(255, 255, 255, .92);
}
.section-alt .write-item { color: rgba(255, 255, 255, .92); border-bottom-color: rgba(255, 255, 255, .18); }
.section-alt .write-item:hover { color: #e8d9b5; }
.section-alt .talk-item { color: rgba(255, 255, 255, .92); border-bottom-color: rgba(255, 255, 255, .18); }
.section-alt .talk-item:hover { color: #e8d9b5; }
.section-alt .talk-title { color: #fff; }
.section-alt .talk-meta { color: rgba(255, 255, 255, .6); }

.section-head {
  display: flex; align-items: baseline; gap: 18px;
  border-bottom: 1px solid var(--ink); padding-bottom: 14px; margin-bottom: 44px;
}
.section-title { font-family: var(--serif); font-size: 28px; font-weight: 700; letter-spacing: .05em; }
.section-en {
  margin-left: auto; font-size: 12.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--faint);
}

/* ---------- 简介 ---------- */
.about-grid {
  display: grid; grid-template-columns: 1.7fr 1fr; gap: 52px; align-items: start;
}

.bio-zh { font-size: 16.5px; line-height: 2; text-align: justify; }
.bio-en {
  color: var(--muted); font-size: 14.5px; line-height: 1.9;
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line);
  font-family: var(--serif);
}

.edu-list { margin-top: 26px; border-top: 1px solid var(--line); }
.edu-row {
  display: flex; gap: 22px; padding: 10px 0;
  border-bottom: 1px solid var(--line); font-size: 15px;
}
.edu-row dt { font-family: var(--serif); color: var(--accent); min-width: 108px; font-size: 14.5px; padding-top: 1px; }
.edu-row dd { color: var(--ink); }
.edu-en { display: block; font-family: var(--serif); font-size: 13px; color: var(--muted); margin-top: 2px; }

.about-figure img {
  border: 1px solid var(--line); box-shadow: var(--shadow);
  width: 100%; aspect-ratio: 3/4; object-fit: cover; cursor: zoom-in;
}
.about-figure figcaption {
  font-size: 12.5px; color: var(--faint); margin-top: 10px; text-align: center;
}

/* ---------- 学术发表 ---------- */
.pub-item {
  display: grid; grid-template-columns: 260px 1fr; gap: 34px;
  padding: 34px 0; border-bottom: 1px solid var(--line);
  align-items: start;
}
.pub-item:first-of-type { padding-top: 8px; }
.pub-item:last-of-type { border-bottom: 0; }

.pub-figure img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border: 1px solid var(--line); background: #fff;
  cursor: zoom-in; transition: transform .2s ease, box-shadow .2s ease;
}
.pub-figure img:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.pub-title { font-family: var(--serif); font-size: 19px; font-weight: 700; line-height: 1.55; margin: 4px 0 8px; }
.pub-journal { color: var(--muted); font-size: 14.5px; margin-bottom: 10px; }
.pub-link { margin: 2px 0 6px; font-size: 14px; }
.pub-link a { border-bottom: 1px dashed var(--line); padding-bottom: 1px; }
.pub-link a:hover { border-color: var(--accent); text-decoration: none; }

.pub-abstract { margin-top: 12px; }
.pub-abstract summary {
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; font-size: 14px; color: var(--accent);
  padding: 6px 0; user-select: none;
}
.pub-abstract summary:hover { text-decoration: underline; }
.pub-abstract summary::before {
  content: "▸"; font-size: 12px; transition: transform .15s;
}
.pub-abstract[open] summary::before { transform: rotate(90deg); }
.summary-hint {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--faint); border: 1px solid var(--line); border-radius: 3px;
  padding: 1px 6px;
}
.pub-abstract > p {
  font-size: 14.5px; color: #3f453d; line-height: 1.9;
  margin-top: 10px; padding: 14px 18px; background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  text-align: justify;
}

/* ---------- 出版图书 ---------- */
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 44px; }

.book-item {
  display: grid; grid-template-columns: 150px 1fr; gap: 24px;
  padding-bottom: 30px; border-bottom: 1px solid var(--line);
  align-items: start;
}

.book-cover img {
  width: 100%; border: 1px solid var(--line); background: #fff;
  box-shadow: var(--shadow); cursor: zoom-in;
}

.book-title { font-family: var(--serif); font-size: 18px; font-weight: 700; margin: 3px 0 6px; line-height: 1.5; }
.book-meta { color: var(--muted); font-size: 13.5px; line-height: 1.8; margin-bottom: 8px; }

.book-desc { margin-top: 8px; }
.book-desc summary {
  cursor: pointer; font-size: 13.5px; color: var(--accent);
  padding: 3px 0; user-select: none; display: inline-flex; align-items: center; gap: 7px;
}
.book-desc summary:hover { text-decoration: underline; }
.book-desc summary::before { content: "▸"; font-size: 12px; transition: transform .15s; }
.book-desc[open] summary::before { transform: rotate(90deg); }
.book-desc > p {
  font-size: 13.5px; color: #3f453d; line-height: 1.85;
  margin-top: 8px; padding: 10px 14px; background: var(--accent-soft);
  border-left: 3px solid var(--gold); text-align: justify;
}
.book-quote { font-family: var(--serif); }

/* ---------- 学术活动 ---------- */
.act-item {
  display: grid; grid-template-columns: 1fr 240px; gap: 34px;
  padding: 6px 0 26px; border-bottom: 1px solid var(--line);
  align-items: start;
}
.act-item:last-child { border-bottom: 0; padding-bottom: 6px; }
.act-item-solo { grid-template-columns: 1fr; }
.act-figure img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border: 1px solid var(--line); box-shadow: var(--shadow); cursor: zoom-in;
}
.act-figure figcaption {
  font-size: 12.5px; color: var(--faint); margin-top: 8px; text-align: center;
}
.act-title { font-family: var(--serif); font-size: 22px; font-weight: 700; }
.act-meta { color: var(--muted); font-size: 15px; margin: 8px 0 4px; }
.act-link { margin: 8px 0; font-size: 14.5px; }
.act-link a { word-break: break-all; }

/* ---------- 公众写作 ---------- */
.write-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 46px; }
.write-item {
  display: flex; gap: 10px; align-items: baseline;
  padding: 12px 2px; border-bottom: 1px solid var(--line);
  color: var(--ink); font-size: 15px; line-height: 1.6;
  transition: color .15s;
}
.write-item:hover { color: var(--accent); text-decoration: none; }
.write-arrow { color: var(--gold); font-size: 13px; flex-shrink: 0; }

/* ---------- 学术与谈 ---------- */
.talk-item {
  display: flex; align-items: baseline; gap: 14px;
  padding: 16px 2px; border-bottom: 1px solid var(--line);
  color: var(--ink); transition: color .15s;
}
.talk-item:hover { color: var(--accent); text-decoration: none; }
.talk-item:first-child { padding-top: 2px; }
.talk-title { font-family: var(--serif); font-size: 17px; font-weight: 600; flex: 1; }
.talk-meta { color: var(--muted); font-size: 13px; flex-shrink: 0; }
.talk-arrow { color: var(--gold); font-size: 14px; flex-shrink: 0; }

/* ---------- 学术会议 ---------- */
.conf-grid {
  display: grid; grid-template-columns: 1.7fr 1fr; gap: 52px; align-items: start;
}

.conf-list { list-style: none; }
.conf-item {
  display: grid; grid-template-columns: 96px 1fr; gap: 18px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.conf-item:first-child { padding-top: 0; }
.conf-date {
  font-family: var(--serif); color: var(--accent); font-size: 15px;
  font-weight: 600; padding-top: 2px;
}
.conf-text { font-size: 15px; line-height: 1.9; text-align: justify; }

.conf-figure img {
  border: 1px solid var(--line); box-shadow: var(--shadow);
  width: 100%; aspect-ratio: 5/4; object-fit: cover; cursor: zoom-in;
  filter: sepia(.08);
}
.conf-figure figcaption {
  font-size: 12.5px; color: var(--faint); margin-top: 10px; text-align: center;
}

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 26px 0; }
.footer-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--faint);
}
.footer-back a { color: var(--muted); }
.footer-back a:hover { color: var(--ink); }

/* ---------- 灯箱 ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(18, 20, 17, .92);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 40px;
}
.lightbox[hidden] { display: none; }
.lightbox-img {
  max-width: min(92vw, 1200px); max-height: 80vh;
  object-fit: contain; border: 1px solid rgba(255, 255, 255, .15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.lightbox-caption { color: rgba(255, 255, 255, .7); font-size: 13.5px; }
.lightbox-close {
  position: absolute; top: 18px; right: 26px;
  background: none; border: 0; color: #fff; font-size: 40px;
  line-height: 1; cursor: pointer; padding: 6px 12px; opacity: .75;
}
.lightbox-close:hover { opacity: 1; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 26px; padding-top: 60px; padding-bottom: 52px; }
  .hero-side { text-align: left; }
  .about-grid, .conf-grid { grid-template-columns: 1fr; gap: 34px; }
  .about-figure img { max-width: 420px; }
  .pub-item { grid-template-columns: 1fr; gap: 18px; }
  .pub-figure img { max-width: 420px; aspect-ratio: 16/10; }
  .book-grid { grid-template-columns: 1fr; }
  .act-item { grid-template-columns: 1fr; gap: 18px; }
  .act-figure img { max-width: 420px; }
  .write-grid { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .section-head { flex-wrap: wrap; gap: 8px 14px; }
  .section-en { margin-left: 0; }

  .nav {
    position: fixed; top: 64px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 8px 28px 16px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a:last-child { border-bottom: 0; }
  .nav-toggle { display: flex; }

  .book-item { grid-template-columns: 1fr; }
  .book-cover img { max-width: 200px; }
  .conf-item { grid-template-columns: 1fr; gap: 4px; }
  .talk-item { flex-wrap: wrap; row-gap: 4px; }
  .talk-meta { width: 100%; order: 3; }
  .edu-row { flex-direction: column; gap: 2px; }
  .footer-row { flex-direction: column; gap: 8px; text-align: center; }
  .lightbox { padding: 20px; }
  body { background-attachment: scroll; }
  .section-alt { background-attachment: scroll; }
}

/* ---------- 动画偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .pub-figure img:hover { transform: none; }
}
