/* RenaSci · 学术名片目录页（55 张）新增的样式：两个入口、谱系、筛选与搜索、紧凑的名片网格。
   与 scholars.css（平台样式：近黑、酸性绿、硬边）一起用，变量都取自那里。 */
:root { --fx-h: 0px; }
.sx3 { --ln: rgba(var(--acid-rgb), .5); --it: 52px; }
html { scroll-padding-top: calc(var(--bar) + var(--fx-h) + 18px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.sx3 [hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sx3 main a:not(.btn):not(.hx__a):not(.gx__a):not(.gx__node):hover { color: var(--acid); }

/* 头像：两个字的圆章（配色来自人物登记表），在深底上加一圈细边 */
.sx3 .av { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--av-bg); color: var(--av-fg);
  font: 700 12px/1 var(--f-sans); font-style: normal; letter-spacing: 0; box-shadow: 0 0 0 1px rgba(var(--fg-rgb), .2); }
.sx3 .av--lg { width: 64px; height: 64px; font-size: 19px; }

/* ---------- 首屏 ---------- */
.sx3 .sx__hero { padding-top: clamp(40px, 6.4vw, 92px); padding-bottom: 56px; }
.sx3 .sx__lede { max-width: 48em; }
.sx3 .sx__lede b { color: var(--acid); font-family: var(--f-disp); font-stretch: 112%; font-weight: 800; }
.hx { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.hx__a { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; column-gap: 20px; min-height: 236px; padding: 22px 26px 22px;
  border: 1px solid var(--acid); background: linear-gradient(135deg, rgba(var(--acid-rgb), .1), rgba(var(--acid-rgb), .02) 60%), var(--panel);
  color: var(--fg); text-decoration: none; overflow: hidden; transition: background .18s, color .18s; }
.hx__k { grid-column: 1; font-family: var(--f-mono); font-size: 11px; letter-spacing: .3em; color: var(--acid); }
.hx__t { grid-column: 1; margin-top: 10px; font-size: clamp(22px, 2.1vw, 30px); line-height: 1.2; font-weight: 900; }
.hx__d { grid-column: 1; margin-top: 12px; max-width: 30em; font-size: 14.5px; line-height: 1.8; color: var(--fg-3); }
.hx__n { grid-column: 2; grid-row: 1 / span 3; align-self: start; font-family: var(--f-disp); font-stretch: 125%; font-weight: 900; font-style: normal;
  font-size: clamp(64px, 6.6vw, 100px); line-height: .8; letter-spacing: -.03em; color: var(--acid); }
.hx__av, .hx__bub { grid-column: 1 / -1; display: flex; align-items: center; margin-top: 18px; min-height: 30px; }
.hx__av .av { width: 30px; height: 30px; font-size: 10px; margin-left: -8px; box-shadow: 0 0 0 2px var(--panel); }
.hx__av .av:first-child { margin-left: 0; }
.hx__av b { margin-left: 8px; font-family: var(--f-mono); font-size: 11px; font-weight: 500; color: var(--dim); }
.hx__bub { align-self: start; justify-self: start; display: inline-flex; gap: 10px; max-width: 100%; padding: 5px 14px 5px 6px; border: 1px solid var(--ln); border-radius: 22px 22px 22px 4px; }
.hx__bub .hx__av { margin: 0; flex: none; }
.hx__bub em { min-width: 0; font-style: normal; font-size: 13px; line-height: 1.35; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx__bub small { flex: none; font-family: var(--f-mono); font-size: 10.5px; color: var(--dim); }
.hx__go { grid-column: 1 / -1; margin-top: 16px; display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--acid); }
.hx__go i { font-style: normal; transition: transform .18s; }
.hx__a:hover, .hx__a:focus-visible { background: var(--acid); color: var(--acid-ink); }
.hx__a:hover .hx__k, .hx__a:hover .hx__d, .hx__a:hover .hx__n, .hx__a:hover .hx__go, .hx__a:hover .hx__av b,
.hx__a:focus-visible .hx__k, .hx__a:focus-visible .hx__d, .hx__a:focus-visible .hx__n, .hx__a:focus-visible .hx__go, .hx__a:focus-visible .hx__av b { color: var(--acid-ink); }
.hx__a:hover .hx__av .av, .hx__a:focus-visible .hx__av .av { box-shadow: 0 0 0 2px var(--acid); }
.hx__a:hover .hx__bub, .hx__a:focus-visible .hx__bub { border-color: rgba(11, 12, 5, .55); }
.hx__a:hover .hx__bub em, .hx__a:hover .hx__bub small, .hx__a:focus-visible .hx__bub em, .hx__a:focus-visible .hx__bub small { color: var(--acid-ink); }
.hx__a:hover .hx__go i, .hx__a:focus-visible .hx__go i { transform: translateX(4px); }
.hx__a:focus-visible { outline-offset: 4px; }

/* ---------- 谱系 ---------- */
.gx { max-width: 1240px; margin: 0 auto; padding: 0 var(--gut); }
.gx__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; margin-bottom: 18px; }
.gx__head h2, .kx__head h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; }
.gx__head p, .kx__head p { margin: 0; max-width: 46em; color: var(--dim); font-size: 15px; }
.gx__map { position: relative; display: flex; flex-direction: column; align-items: center; padding: 34px 32px 38px; border: 1px solid var(--line);
  background: radial-gradient(rgba(var(--fg-rgb), .09) 1px, transparent 1.2px) 0 0 / 22px 22px, var(--panel); }
.gx__k { margin: 0 0 12px; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 2px 10px; line-height: 1.4; }
.gx__k b { font-size: 15px; font-weight: 900; color: var(--fg); }
.gx__k span { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; color: var(--acid); }
.gx__avs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; row-gap: 8px; }
.gx__avs li { width: var(--it); display: flex; justify-content: center; }
.gx__a { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 100%; padding: 3px 0 2px; text-decoration: none; transition: opacity .2s; }
.gx__a span { font-size: 11px; line-height: 1.25; color: var(--fg-3); white-space: nowrap; }
.gx__a .av, .gx__node .av { transition: transform .15s, box-shadow .15s; }
.gx__a:hover .av, .gx__a:focus-visible .av, .gx__node:hover .av, .gx__node:focus-visible .av { transform: scale(1.1); box-shadow: 0 0 0 2px var(--acid); }
.gx__a:hover span, .gx__a:focus-visible span, .gx__node:hover b, .gx__node:focus-visible b { color: var(--acid); }
.gx__a:focus-visible, .gx__node:focus-visible { outline: none; }
.gx__a.is-dim, .gx__node.is-dim { opacity: .28; }

/* 前辈：一行头像，下面一道点线括号，再一根点线落到叶秀山 */
.gx__band--pred { display: flex; flex-direction: column; align-items: center; }
.gx__band--pred .gx__avs { padding-bottom: 12px; border-bottom: 1px dotted var(--ln);
  background: linear-gradient(var(--ln), var(--ln)) left bottom / 1px 8px no-repeat, linear-gradient(var(--ln), var(--ln)) right bottom / 1px 8px no-repeat; }
.gx__band--pred::after { content: ""; display: block; height: 34px; border-left: 1px dotted var(--ln); }

/* 中段：图例 | 叶秀山—吴国盛 | 同行 */
.gx__mid { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 180px minmax(0, 1fr); column-gap: 36px; align-items: end; }
.gx__legend { list-style: none; margin: 0 0 6px; padding: 0; justify-self: end; display: grid; gap: 7px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .04em; color: var(--dim); }
.gx__legend li { display: flex; align-items: center; gap: 10px; }
.ln { display: inline-block; width: 30px; border-top: 1px solid var(--ln); }
.ln--dash { border-top-style: dashed; }
.ln--dot { border-top-style: dotted; }
.gx__spine { align-self: stretch; display: flex; flex-direction: column; align-items: center; }
.gx__node { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-decoration: none; }
.gx__node b { display: block; margin-top: 6px; font-size: 18px; line-height: 24px; font-weight: 900; transition: color .15s; }
.gx__node small { display: block; font-family: var(--f-mono); font-size: 10.5px; line-height: 16px; color: var(--dim); }
.gx__edge { position: relative; flex: 1 0 44px; width: 0; margin: 4px 0; border-left: 1px solid var(--ln); }
.gx__edge em { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-style: normal; font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em; color: var(--acid); }
.gx__band--peer { position: relative; justify-self: start; display: flex; flex-direction: column; align-items: flex-start; max-width: calc(var(--it) * 7 + 19px); padding: 4px 0 4px 18px; border-left: 1px dotted var(--ln); }
.gx__band--peer .gx__k { justify-content: flex-start; }
.gx__band--peer .gx__avs { justify-content: flex-start; }
/* 同行与吴国盛之间的点线：从同行的括号一直连到中轴（藏在吴国盛的头像下面）；吴国盛头像的中心离中段底边 78px */
.gx__band--peer::before { content: ""; position: absolute; right: 100%; bottom: 77px; width: calc(36px + 90px); border-top: 1px dotted var(--ln); }

/* 吴国盛 → 学生（实线）与博士后（虚线） */
.gx__band--wm { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 24px; padding-top: 34px; }
.gx__band--wm::before { content: ""; position: absolute; top: 0; left: 50%; height: 34px; border-left: 1px solid var(--ln); }
.gx__grp { position: relative; padding-top: 14px; border-top: 1px solid var(--ln);
  background: linear-gradient(var(--ln), var(--ln)) left top / 1px 8px no-repeat, linear-gradient(var(--ln), var(--ln)) right top / 1px 8px no-repeat; }
.gx__grp--pd { border-top-style: dashed; }
.gx__grp--pd::before { content: ""; position: absolute; top: -1px; right: 100%; width: 24px; border-top: 1px dashed var(--ln); }

/* 宽屏一行排开；窄一些就排成两行 */
@media (max-width: 1239px) {
  .gx__band--pred .gx__avs { max-width: calc(var(--it) * 10); }
  .gx__grp--stud .gx__avs { max-width: calc(var(--it) * 9); }
}

/* ---------- 全部名片：标题、筛选与搜索 ---------- */
.kx { max-width: 1240px; margin: 0 auto; padding: 88px var(--gut) 0; }
.kx__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; margin-bottom: 18px; }
.fx { position: sticky; top: var(--bar); z-index: 50; padding: 10px 0; }
.fx::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: rgba(var(--void-rgb), .94);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.fx__in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.fx__g { display: flex; flex-wrap: wrap; }
.fx__g button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin-right: -1px; padding: 0 14px; border: 1px solid var(--line); border-radius: 0;
  background: transparent; color: var(--fg); font: 500 13px/1 var(--f-sans); cursor: pointer; transition: background .15s, color .15s; }
.fx__g button b { font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; color: var(--dim); }
.fx__g button:hover { color: var(--acid); }
.fx__g button[aria-pressed="true"] { position: relative; z-index: 1; background: var(--acid); border-color: var(--acid); color: var(--acid-ink); font-weight: 700; }
.fx__g button[aria-pressed="true"] b { color: var(--acid-ink); }
.fx__s { position: relative; flex: 1 1 240px; max-width: 360px; }
.fx__s input { width: 100%; min-height: 40px; padding: 0 40px 0 14px; border: 1px solid var(--line); border-radius: 0; background: rgba(var(--fg-rgb), .04);
  color: var(--fg); font: 400 14px/1 var(--f-sans); -webkit-appearance: none; appearance: none; }
.fx__s input::placeholder { color: var(--dim); }
.fx__s input:focus { outline: 2px solid var(--acid); outline-offset: -1px; border-color: var(--acid); }
.fx__s input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin-right: -26px; cursor: pointer;
  background: no-repeat center / 11px 11px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 1l10 10M11 1L1 11' stroke='%23d4ff26' stroke-width='1.6'/%3E%3C/svg%3E"); }
.fx__s kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); padding: 2px 7px; border: 1px solid var(--line-soft); font: 500 10.5px/1.4 var(--f-mono); color: var(--dim); pointer-events: none; }
.fx__s input:focus + kbd, .fx__s input:not(:placeholder-shown) + kbd { display: none; }
.fx__n { margin: 0 0 0 auto; font-family: var(--f-mono); font-size: 11px; letter-spacing: .05em; color: var(--dim); white-space: nowrap; }
.kg__none { margin: 40px 0 0; padding: 22px 24px; border: 1px dashed var(--line); color: var(--fg-3); }

/* ---------- 名片网格 ---------- */
.kg { padding-top: 44px; }
.kg__h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin-bottom: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.kg__h h3 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.1; }
.kg__h h3 b { margin-left: 12px; font-family: var(--f-disp); font-stretch: 115%; font-weight: 800; font-size: .72em; color: var(--acid); }
.kg__h p { margin: 0; color: var(--dim); font-size: 14.5px; }
.kg__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.k { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); background: var(--panel); transition: border-color .2s; }
.k:hover { border-color: rgba(var(--acid-rgb), .55); }
.k__shot { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); background: #000; }
.k__shot img { width: 100%; height: 100%; object-fit: cover; object-position: 0 0; transition: transform .6s ease; }
.k__shot:hover img { transform: scale(1.035); }
.k__shot--ph { background: repeating-linear-gradient(135deg, rgba(0, 0, 0, .14) 0 2px, transparent 2px 12px), var(--av-bg); }
.k__ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--av-fg); }
.k__ph i { display: grid; place-items: center; width: 108px; height: 108px; border-radius: 50%; border: 2px solid currentColor; font: 900 32px/1 var(--f-sans); font-style: normal; letter-spacing: .04em; }
.k__ph small { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; opacity: .8; }
.k__b { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.k .k__tag { margin: 0 0 12px; font-size: 10.5px; }
.k .k__tag > * { padding: 5px 8px; }
.k__n { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 0; font-size: 28px; line-height: 1.15; font-weight: 900; }
.k__n a { text-decoration: none; }
.k__n span { font-family: var(--f-disp); font-stretch: 112%; font-weight: 700; font-size: 14px; letter-spacing: .01em; color: var(--dim); }
.k__y { margin: 4px 0 0; font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; color: var(--dim); }
.k__who { margin: 10px 0 14px; font-size: 14.5px; line-height: 1.7; color: var(--fg-3); }
.k__qk { margin: 0 0 6px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; color: var(--acid); }
.k__qs { list-style: none; margin: 0 0 14px; padding: 0; border-top: 1px solid var(--line-soft); }
.k__qs li { border-bottom: 1px solid var(--line-soft); }
.k__qs a { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 6px; padding: 7px 0; text-decoration: none; font-size: 14px; line-height: 1.55; }
.k__qs i { font-style: normal; font-family: var(--f-mono); font-size: 10.5px; line-height: 2.1; color: var(--dim); }
.k__qs a:hover i { color: var(--acid); }
.k__x { margin: 0 0 16px; font-size: 13px; line-height: 1.75; color: var(--dim); }
.k__btns { margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.k .btn { min-height: 40px; padding: 0 16px; font-size: 11.5px; }
.k:target { outline: 2px solid var(--acid); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .k:target { animation: k-hit 1.6s ease-out 1; }
}
@keyframes k-hit { 0% { box-shadow: 0 0 0 0 rgba(var(--acid-rgb), .65); } 100% { box-shadow: 0 0 0 22px rgba(var(--acid-rgb), 0); } }

/* ---------- 名片之间与说明 ---------- */
.sx3__more { padding-top: 96px; }
.sx3__more a { color: var(--acid); text-underline-offset: 3px; }
.sx3__h2 { margin-top: 40px !important; font-size: clamp(22px, 2.4vw, 30px) !important; }
.sx3 .sx__foot { margin-top: 24px; }

@media (prefers-reduced-motion: reduce) {
  .hx__a, .hx__go i, .gx__a, .gx__a .av, .gx__node .av, .k__shot img, .fx__g button { transition: none; }
  .k__shot:hover img { transform: none; }
}

/* ---------- 中等宽度 ---------- */
@media (max-width: 1099px) {
  .kg__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gx__map { padding: 30px 24px 34px; }
}

/* ---------- 窄屏：谱系竖排，同行与图例放到最后 ---------- */
@media (max-width: 859px) {
  .hx { grid-template-columns: minmax(0, 1fr); }
  .gx__mid { display: contents; }
  .gx__band--pred { order: 1; }
  .gx__spine { order: 2; }
  .gx__band--wm { order: 3; }
  .gx__band--peer { order: 4; }
  .gx__legend { order: 5; }
  .gx__spine { align-self: center; }
  .gx__edge { flex: 0 0 52px; }
  .gx__band--peer { justify-self: auto; align-items: center; max-width: none; margin-top: 30px; padding: 18px 0 0; border-left: 0; border-top: 1px dotted var(--ln); }
  .gx__band--peer::before { display: none; }
  .gx__band--peer .gx__k, .gx__band--peer .gx__avs { justify-content: center; }
  .gx__band--peer .gx__avs { max-width: calc(var(--it) * 5); }
  .gx__legend { justify-self: auto; align-self: center; margin: 26px 0 0; grid-template-columns: repeat(3, auto); gap: 6px 16px; }
  .gx__band--wm { flex-direction: column; align-items: center; gap: 22px; }
  .gx__grp--pd::before { display: none; }
  .gx__grp--stud .gx__avs { max-width: calc(var(--it) * 6); }
  .gx__band--pred .gx__avs { max-width: calc(var(--it) * 5); }
}
@media (max-width: 699px) {
  .kg__grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .fx { position: static; }
  .fx::before { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .fx__g { flex-basis: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fx__g button { justify-content: center; margin-bottom: -1px; }
  .fx__s { flex-basis: 100%; max-width: none; }
  .fx__s kbd { display: none; }
  .fx__n { margin-left: 0; }
  .gx__map { padding: 26px 16px 30px; }
  .gx__legend { grid-template-columns: auto; }
  .hx__a { min-height: 0; padding: 20px 20px 18px; }
  .hx__n { font-size: 64px; }
  .kx { padding-top: 64px; }
  /* 手机：缩略图缩到名字右边，名片更紧凑 */
  .k { display: grid; grid-template-columns: minmax(0, 1fr) 132px; column-gap: 14px; padding: 14px 14px 16px;
    grid-template-areas: "n shot" "y shot" "tag tag" "who who" "qk qk" "qs qs" "x x" "btns btns"; grid-template-rows: auto 1fr; align-items: start; }
  .k__b { display: contents; }
  .k__shot { grid-area: shot; align-self: start; border: 1px solid var(--line); }
  .k .k__tag { grid-area: tag; margin: 12px 0 0; }
  .k .k__tag > * { padding: 4px 6px; }
  .k__n { grid-area: n; font-size: 24px; gap: 0 8px; }
  .k__n span { font-size: 12.5px; }
  .k__y { grid-area: y; }
  .k__who { grid-area: who; margin: 10px 0 12px; font-size: 14px; }
  .k__qk { grid-area: qk; }
  .k__qs { grid-area: qs; margin-bottom: 12px; }
  .k__qs a { font-size: 13.5px; padding: 6px 0; }
  .k__x { grid-area: x; margin-bottom: 14px; font-size: 12.5px; }
  .k__btns { grid-area: btns; margin: 0; }
  .k__ph i { width: 52px; height: 52px; font-size: 16px; border-width: 1px; }
  .k__ph { gap: 4px; }
  .k__ph small { font-size: 9px; letter-spacing: .04em; }
}

/* 首屏下方一行：批注与反馈的入口（2026-10-07） */
.sx__fb { margin: 22px 0 0; max-width: 46em; color: var(--dim); font-size: 15px; line-height: 1.8; }
.sx__fb a { color: var(--acid); text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
