:root {
  --accent: #0b3f86;
  --accent-2: #1f6fd0;
  --ink: #1f2733;
  --muted: #6b7482;
  --line: #e6eaf0;
  --bg: #f4f6fa;
  --card: #ffffff;
  --card-shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06);
  --topbar-bg: rgba(255,255,255,.9);
  --topbar-shadow: 0 1px 8px rgba(16,24,40,.08);
  --tag-bg: #eaf1fb; --tag-ink: #0b3f86;
  --pill-bg: #eef1f6; --pill-ink: #6b7482;
  --divider: #eef1f5;
  --mono-bg: #eaf1fb;
  --grad-a: #0b3f86; --grad-b: #1f6fd0;
  --band-deco-1: rgba(255,255,255,.22); --band-deco-2: rgba(255,255,255,.12);
  --tag-ssci-bg: #e3edfb; --tag-ssci-ink: #1a56a8;
  --tag-cssci-bg: #e2f4e8; --tag-cssci-ink: #177245;
  --tag-ei-bg: #fdf0e0; --tag-ei-ink: #b36400;
  --tag-oth-bg: #eef1f6; --tag-oth-ink: #6b7482;
  --award-bg: #fbfbfc;
  --more-hover: #eaf1fb;
}
html[data-theme="dark"] {
  --accent: #7fb0ff;
  --accent-2: #a9c8ff;
  --ink: #e6e9f0;
  --muted: #98a2b3;
  --line: #243047;
  --bg: #0f1420;
  --card: #161c2a;
  --card-shadow: none;
  --topbar-bg: rgba(15,20,32,.9);
  --topbar-shadow: 0 1px 8px rgba(0,0,0,.4);
  --tag-bg: #1c2c4a; --tag-ink: #a9c8ff;
  --pill-bg: #1e2740; --pill-ink: #98a2b3;
  --divider: #1f2940;
  --mono-bg: #1c2c4a;
  --grad-a: #0b2f63; --grad-b: #164a9a;
  --band-deco-1: rgba(255,255,255,.10); --band-deco-2: rgba(255,255,255,.06);
  --tag-ssci-bg: #1c2c4a; --tag-ssci-ink: #a9c8ff;
  --tag-cssci-bg: #16351f; --tag-cssci-ink: #7fce9f;
  --tag-ei-bg: #3a2a14; --tag-ei-ink: #e0a95c;
  --tag-oth-bg: #1e2740; --tag-oth-ink: #98a2b3;
  --award-bg: #141b29;
  --more-hover: #1c2c4a;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  transition: background .2s, color .2s;
}
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: var(--topbar-bg);
  backdrop-filter: blur(8px);
  box-shadow: var(--topbar-shadow);
}
.topbar-inner { display: flex; align-items: center; height: 58px; }
.topnav { display: flex; gap: 4px; overflow-x: auto; white-space: nowrap; min-width: 0; flex: 1; scrollbar-width: none; }
.topnav::-webkit-scrollbar { display: none; }
.topnav a {
  color: var(--muted); text-decoration: none; font-size: 14px;
  padding: 5px 11px; border-radius: 999px; transition: color .15s, background .15s;
}
.topnav a:hover { color: var(--accent); }
.topnav a.active { color: var(--accent); background: var(--tag-bg); font-weight: 600; }
.nav-btns { display: flex; gap: 6px; margin-left: 10px; flex-shrink: 0; }
.nav-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-width: 36px; height: 36px; padding: 0 8px;
  border: none; border-radius: 999px; background: transparent;
  color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 600;
  font-family: inherit; transition: color .15s, background .15s;
}
.nav-btn:hover { color: var(--accent); background: var(--tag-bg); }
.nav-btn svg { display: block; }
#lang-label { font-size: 12.5px; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  padding: 30px 34px;
  margin: 26px 0;
}

/* ---------- Hero ---------- */
.hero { padding: 0; overflow: hidden; }
.hero-band {
  height: 120px;
  background:
    radial-gradient(circle at 82% -30%, var(--band-deco-1) 0 90px, transparent 91px),
    radial-gradient(circle at 92% 60%, var(--band-deco-2) 0 130px, transparent 131px),
    linear-gradient(135deg, var(--grad-a) 0%, var(--grad-b) 100%);
}
.hero-body { padding: 0 34px 30px; display: flex; gap: 26px; align-items: flex-start; }
.avatar {
  width: 128px; height: 128px; border-radius: 50%; object-fit: cover;
  border: 4px solid var(--card); box-shadow: 0 4px 14px rgba(16,24,40,.18);
  margin-top: -64px; flex-shrink: 0; background: #eef1f6;
}
.hero-info { padding-top: 16px; min-width: 0; }
.hero h1 { margin: 0 0 4px; font-size: 30px; color: var(--ink); }
.hero-sub { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tag {
  background: var(--tag-bg); color: var(--tag-ink);
  border-radius: 999px; padding: 2px 12px; font-size: 13px; font-weight: 500;
}
.hero-contact { margin: 4px 0; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.hero-contact svg { flex-shrink: 0; }
.hero-contact a { text-decoration: none; color: var(--accent); }
.hero-contact a:hover { color: var(--accent-2); text-decoration: underline; }

/* stats */
.stats { display: flex; border-top: 1px solid var(--line); margin-top: 6px; }
.stat { flex: 1; text-align: center; padding: 18px 8px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .v { font-size: 24px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat .l { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---------- 简介 ---------- */
.bio { margin: 0; line-height: 1.9; text-align: justify; white-space: pre-wrap; }

/* ---------- 章节标题（菱形标记） ---------- */
.sec-title {
  display: flex; align-items: center; gap: 12px;
  font-size: 20px; color: var(--ink); margin: 0 0 20px;
}
.sec-title::before {
  content: ""; width: 10px; height: 10px;
  background: var(--accent); transform: rotate(45deg); flex-shrink: 0;
}
.group-title {
  font-size: 13px; font-weight: 600; letter-spacing: .06em;
  color: var(--muted); text-transform: uppercase;
  margin: 22px 0 10px; display: flex; align-items: center; gap: 8px;
}
.group-title:first-of-type { margin-top: 4px; }
.count-pill {
  background: var(--pill-bg); color: var(--pill-ink); border-radius: 999px;
  padding: 0 8px; font-size: 12px; font-weight: 500; letter-spacing: 0;
  text-transform: none;
}

/* ---------- 时间线 ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px;
  width: 2px; background: var(--line);
}
.tl-item {
  position: relative; display: flex; gap: 16px; padding: 10px 0 10px 22px;
}
.tl-item:not(:last-child) { border-bottom: 1px dashed var(--divider); }
.tl-item::before {
  content: ""; position: absolute; left: 0; top: 20px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px var(--mono-bg);
}
.tl-body { flex: 1; min-width: 0; }
.tl-time {
  display: inline-block; background: var(--pill-bg); color: var(--pill-ink);
  border-radius: 6px; padding: 0 8px; font-size: 12.5px;
  font-variant-numeric: tabular-nums; margin-bottom: 3px;
}
.tl-text { font-weight: 600; }
.tl-note { color: var(--muted); font-size: 14px; margin-top: 1px; }
.tl-mono {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: var(--mono-bg); color: var(--accent); font-size: 18px; font-weight: 700;
}
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  margin-left: 8px; font-size: 12px; font-weight: 500;
  border: 1px solid var(--line); border-radius: 6px;
  padding: 0 7px; color: var(--accent); text-decoration: none;
  vertical-align: 1px; white-space: nowrap;
}
.chip:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.chip:hover svg { stroke: #fff; }

/* ---------- Logo 行列表 ---------- */
.logo-list { list-style: none; margin: 0; padding: 0; }
.lr-item { display: flex; gap: 18px; align-items: flex-start; padding: 15px 0; }
.lr-item:not(:last-child) { border-bottom: 1px solid var(--divider); }
.lr-logo {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.lr-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.lr-body { flex: 1; min-width: 0; }

/* ---------- 出版物列表 ---------- */
.publist { list-style: none; margin: 0; padding: 0; counter-reset: pub; }
.pub-item {
  counter-increment: pub;
  position: relative; padding: 7px 0 7px 38px;
  border-bottom: 1px dashed var(--divider);
}
.pub-item:last-child { border-bottom: none; }
.pub-item::before {
  content: counter(pub);
  position: absolute; left: 0; top: 9px;
  color: var(--accent); font-weight: 700; font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.pub-tags { display: inline-flex; gap: 4px; margin-left: 6px; vertical-align: 1px; }
.pub-tag {
  font-size: 11px; font-weight: 600; padding: 0 6px; border-radius: 4px;
  background: var(--tag-oth-bg); color: var(--tag-oth-ink); white-space: nowrap;
}
.pub-tag.ssci, .pub-tag.sci { background: var(--tag-ssci-bg); color: var(--tag-ssci-ink); }
.pub-tag.cssci { background: var(--tag-cssci-bg); color: var(--tag-cssci-ink); }
.pub-tag.ei { background: var(--tag-ei-bg); color: var(--tag-ei-ink); }

/* ---------- 奖项 ---------- */
.award-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  list-style: none; margin: 0; padding: 0;
}
.award {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 14px; font-size: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--award-bg);
}
.award-year {
  flex-shrink: 0; background: var(--tag-bg); color: var(--tag-ink);
  font-size: 12px; font-weight: 600; border-radius: 6px; padding: 1px 8px;
  font-variant-numeric: tabular-nums; max-width: 45%; text-align: center;
}

/* ---------- 段落 ---------- */
.plain p { margin: 6px 0; color: var(--ink); opacity: .85; }

/* ---------- 展开按钮 ---------- */
.more-btn {
  margin: 12px 0 0; background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; color: var(--accent); padding: 6px 18px;
  cursor: pointer; font-size: 13.5px; font-family: inherit;
  transition: background .15s;
}
.more-btn:hover { background: var(--more-hover); }

.footer { margin: 40px 0 30px; color: var(--muted); font-size: 13px; text-align: center; }
.footer .upd { margin-top: 2px; font-size: 12px; opacity: .7; }

.item.collapsed.hide, .pub-item.collapsed.hide, .award.collapsed.hide,
.tl-item.collapsed.hide, .lr-item.collapsed.hide { display: none !important; }

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
  .card { padding: 20px 18px; margin: 18px 0; }
  .lr-item { gap: 12px; padding: 12px 0; }
  .lr-logo { width: 40px; height: 40px; }
  .hero-body { padding: 0 18px 22px; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
  .hero-band { height: 84px; }
  .avatar { width: 104px; height: 104px; margin-top: -52px; }
  .tags, .hero-contact { justify-content: center; }
  .stats { flex-wrap: wrap; }
  .stat { flex: 0 0 50%; }
  .stat + .stat:nth-child(odd) { border-left: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .award-grid { grid-template-columns: 1fr; }
  .pub-item { padding-left: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body, .topnav a, .more-btn, .chip, .nav-btn { transition: none; }
}

@media print {
  body { background: #fff; }
  .card { box-shadow: none; border: none; padding: 12px 0; margin: 8px 0; }
  .topbar { position: static; box-shadow: none; }
  .topnav, .more-btn, .nav-btns { display: none; }
  .collapsed.hide { display: flex !important; }
  .pub-item.collapsed.hide { display: block !important; }
  a { color: #1f2733; text-decoration: none; }
}
