/* ============================================================================
   DBL · TCM Group  —  stylesheet
   Three visual directions switch via [data-theme] on <html>:
     jade  → warm paper, deep pine + jade            (default, light)
     ink   → deep ink ground, cream + gold           (dark, dramatic)
     paper → clinical white, cinnabar seal accent     (editorial)
   Language switches via [data-lang="en"|"zh"] on <html>.
   Accent + font are layered tweak overrides (--accent, font-family vars).
   ========================================================================== */

/* ---- tokens : JADE (default) -------------------------------------------- */
:root,
:root[data-theme="jade"] {
  --bg:        #f5f2ea;
  --bg-tint:   #ece7da;
  --surface:   #fffefa;
  --surface-2: #f1ece0;
  --ink:       #222b25;
  --ink-soft:  #45524a;
  --muted:     #74827a;
  --faint:     #a0aaa1;
  --line:      #e2ddce;
  --line-soft: #ece7d9;
  --accent:    #2a7d5a;   /* friendlier jade */
  --accent-2:  #379a6f;
  --on-accent: #f8fbf9;
  --seal:      #b8472f;   /* warm cinnabar */
  --on-seal:   #fdf6f1;
  --shadow:    0 1px 2px rgba(34,43,37,.04), 0 12px 30px -18px rgba(34,43,37,.20);
  --shadow-lg: 0 2px 4px rgba(34,43,37,.05), 0 30px 60px -28px rgba(34,43,37,.26);
  --plate-a:   #e8e1d0;
  --plate-b:   #ded6bf;
}

/* ---- tokens : INK ------------------------------------------------------- */
:root[data-theme="ink"] {
  --bg:        #141a17;
  --bg-tint:   #18211c;
  --surface:   #1a221d;
  --surface-2: #212b25;
  --ink:       #eee7d7;
  --ink-soft:  #d2cab7;
  --muted:     #97a79c;
  --faint:     #697a6f;
  --line:      #2a3a33;
  --line-soft: #213029;
  --accent:    #d0a94a;   /* warm gold */
  --accent-2:  #e2bd63;
  --on-accent: #1a1408;
  --seal:      #cd6244;
  --on-seal:   #1a0f0a;
  --shadow:    0 1px 2px rgba(0,0,0,.38), 0 18px 40px -20px rgba(0,0,0,.66);
  --shadow-lg: 0 2px 6px rgba(0,0,0,.42), 0 40px 70px -30px rgba(0,0,0,.78);
  --plate-a:   #202f29;
  --plate-b:   #263732;
}

/* ---- tokens : PAPER ----------------------------------------------------- */
:root[data-theme="paper"] {
  --bg:        #faf7f2;
  --bg-tint:   #f3eee4;
  --surface:   #fffdf9;
  --surface-2: #f4efe6;
  --ink:       #2a2622;
  --ink-soft:  #4c453d;
  --muted:     #857b6e;
  --faint:     #aaa093;
  --line:      #e9e1d4;
  --line-soft: #f1eadf;
  --accent:    #b8472f;   /* warm cinnabar */
  --accent-2:  #c85a40;
  --on-accent: #fff8f3;
  --seal:      #b8472f;
  --on-seal:   #fff8f3;
  --shadow:    0 1px 2px rgba(42,38,34,.04), 0 14px 32px -20px rgba(42,38,34,.16);
  --shadow-lg: 0 2px 4px rgba(42,38,34,.05), 0 30px 60px -28px rgba(42,38,34,.20);
  --plate-a:   #f0e9dd;
  --plate-b:   #e7dfd1;
}

/* ---- fonts : serif-forward (default) vs sans-forward -------------------- */
:root {
  --font-display: "Spectral", "Noto Serif SC", Georgia, serif;
  --font-body:    "Public Sans", "Noto Sans SC", system-ui, sans-serif;
  --font-mono:    "Spline Sans Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
:root[data-font="sans"] {
  --font-display: "Public Sans", "Noto Sans SC", system-ui, sans-serif;
  --font-body:    "Public Sans", "Noto Sans SC", system-ui, sans-serif;
}
:root[data-lang="zh"] {
  --font-display: "Noto Serif SC", "Spectral", Georgia, serif;
  --font-body:    "Noto Sans SC", "Public Sans", system-ui, sans-serif;
}
:root[data-lang="zh"][data-font="sans"] {
  --font-display: "Noto Sans SC", system-ui, sans-serif;
}

/* ---- reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "ss01", "cv01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .4s ease, color .4s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--on-accent); }

/* language visibility */
:root[data-lang="en"] .l-zh { display: none !important; }
:root[data-lang="zh"] .l-en { display: none !important; }

/* ---- layout primitives -------------------------------------------------- */
.wrap { width: min(1180px, 92vw); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 132px) 0; }
.section--tint { background: var(--bg-tint); }

/* ---- academic section header (§NN + hairline) -------------------------- */
.sec-rule {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 12px; border-bottom: 1.5px solid var(--ink);
  margin-bottom: 18px;
}
.sec-no { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--accent); letter-spacing: .04em; }
.sec-kicker {
  font-family: var(--font-body); font-size: 12.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft);
  white-space: nowrap;
}
:root[data-lang="zh"] .sec-kicker { letter-spacing: .1em; }
.sec-head .section-title { margin-top: 0; }
.sec-head .section-note { margin-top: 14px; }
.eyebrow {
  font-family: var(--font-body);
  font-size: 12.5px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1.5px; background: var(--accent); display: inline-block;
}
:root[data-lang="zh"] .eyebrow { letter-spacing: .14em; }
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.14;
  letter-spacing: -.01em;
  margin: 18px 0 0;
  max-width: 20ch;
  text-wrap: balance;
}
.section-note { color: var(--muted); max-width: 60ch; margin: 16px 0 0; }

/* ---- utility bar (institutional breadcrumb) ----------------------------- */
.utility-bar {
  background: var(--ink);
  color: color-mix(in srgb, var(--bg) 80%, transparent);
  font-size: 12.5px;
}
.utility-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 38px; }
.crumb { display: flex; align-items: center; gap: 9px; min-width: 0; overflow: hidden; }
.crumb a { color: color-mix(in srgb, var(--bg) 72%, transparent); white-space: nowrap; transition: color .2s; }
.crumb a:last-child { color: var(--bg); font-weight: 600; }
.crumb a:hover { color: var(--accent-2); }
.crumb-sep { color: color-mix(in srgb, var(--bg) 40%, transparent); }
.utility-links { display: flex; gap: 18px; flex: none; }
.utility-links a { color: color-mix(in srgb, var(--bg) 75%, transparent); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; transition: color .2s; }
.utility-links a:hover { color: var(--bg); }
.utility-links .ext { font-size: 11px; opacity: .7; }
@media (max-width: 720px) {
  .crumb a:not(:last-child), .crumb-sep { display: none; }
  .utility-links a span.ext { display: none; }
}

/* ---- header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.header-inner {
  display: flex; align-items: center; gap: 24px;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 13px; margin-right: auto; }
.brand:hover .seal { transform: rotate(-4deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: .01em; }
.brand-org { font-size: 11px; color: var(--muted); letter-spacing: .02em; }

/* seal mark / logo — leaf glyph in accent square */
.seal {
  width: 40px; height: 40px; flex: none;
  background: var(--seal); color: var(--on-seal);
  border-radius: 9px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  letter-spacing: .02em;
  position: relative;
  transition: transform .3s ease;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--on-seal) 22%, transparent);
}
.logo {
  width: 40px; height: 40px; flex: none;
  background: var(--accent); color: var(--on-accent);
  border-radius: 11px;
  display: grid; place-items: center;
  transition: transform .3s ease, background .3s ease;
  box-shadow: var(--shadow);
}
.logo svg { width: 26px; height: 26px; display: block; }
.brand:hover .logo { transform: rotate(-6deg); }

.nav { display: flex; gap: 4px; }
.nav a {
  font-size: 14px; color: var(--ink-soft);
  padding: 8px 11px; border-radius: 8px;
  position: relative; transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a.active { color: var(--accent); }

.header-tools { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px;
  overflow: hidden; background: var(--surface);
}
.lang-toggle button {
  border: 0; background: transparent; color: var(--muted);
  padding: 7px 13px; font-size: 13px; font-weight: 600; letter-spacing: .02em;
  transition: color .2s, background .2s;
}
.lang-toggle button.on { background: var(--accent); color: var(--on-accent); }
.menu-btn {
  display: none; border: 1px solid var(--line); background: var(--surface);
  width: 40px; height: 38px; border-radius: 9px; color: var(--ink);
  align-items: center; justify-content: center;
}

/* ---- hero --------------------------------------------------------------- */
.hero { position: relative; padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 76px); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 20px 0 0;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--accent); font-style: italic; }
:root[data-lang="zh"] .hero h1 { line-height: 1.14; letter-spacing: .01em; }
:root[data-lang="zh"] .hero h1 .accent { font-style: normal; }
.hero-lede { font-size: clamp(16px, 1.4vw, 19px); color: var(--ink-soft); max-width: 52ch; margin: 26px 0 0; }
.hero-affil { font-size: 14px; color: var(--muted); max-width: 50ch; margin: 18px 0 0; padding-left: 16px; border-left: 2px solid var(--line); line-height: 1.55; }
.hero-figure { margin: 0; }
.hero-slot {
  display: block; width: 100%; aspect-ratio: 3 / 2;
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: var(--surface-2); box-shadow: var(--shadow-lg);
}
.fig-cap { font-size: 12.5px; color: var(--muted); margin-top: 12px; line-height: 1.5; max-width: 44ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 600;
  border: 1px solid transparent; transition: transform .18s, box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--accent-2); box-shadow: var(--shadow-lg); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }

/* hero plate (placeholder visual) */
.plate {
  position: relative; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, var(--plate-a) 0 11px, var(--plate-b) 11px 22px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: flex-end;
}
.plate::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 18%, transparent 38%, color-mix(in srgb, var(--bg) 55%, transparent) 100%);
}
.plate-tongue {
  position: absolute; top: 16%; left: 50%; transform: translateX(-50%);
  width: 46%; height: 56%;
  border-radius: 50% 50% 48% 48% / 38% 38% 62% 62%;
  background: color-mix(in srgb, var(--seal) 26%, var(--surface));
  border: 2px dashed color-mix(in srgb, var(--seal) 55%, var(--ink));
  opacity: .9;
}
.plate-tongue::after {
  content: ""; position: absolute; inset: 16% 0 0; margin-inline: auto; width: 2px;
  background: color-mix(in srgb, var(--seal) 50%, transparent);
}
.plate-label {
  position: relative; z-index: 2; margin: 18px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-soft);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 11px;
  letter-spacing: .01em;
}

/* ---- stats strip -------------------------------------------------------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  margin-top: clamp(36px, 5vw, 64px);
}
.stat { background: var(--surface); padding: 26px 24px; }
.stat-v { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3vw, 38px); color: var(--accent); letter-spacing: -.01em; }
.stat-k { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---- mission ------------------------------------------------------------ */
.mission-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.mission-body { font-size: clamp(18px, 1.8vw, 23px); line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; }
.mission-body .lede-mark { color: var(--accent); font-family: var(--font-display); }

/* ---- research pillars --------------------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: clamp(36px, 5vw, 60px); }
.pillar {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 30px 28px 34px; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.pillar-no { font-family: var(--font-mono); font-size: 13px; color: var(--accent); letter-spacing: .1em; }
.pillar h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; margin: 14px 0 10px; line-height: 1.2; }
.pillar p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* ---- software cards ----------------------------------------------------- */
/* ---- software / tools : scalable auto-flow grid, equal-height cards ----- */
.tool-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 20px; margin-top: clamp(36px, 5vw, 56px);
}
.tool {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 26px 26px 24px; box-shadow: var(--shadow); overflow: hidden;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.tool::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent); opacity: 0; transition: opacity .22s;
}
.tool:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 36%, var(--line)); }
.tool:hover::after { opacity: 1; }
.tool-top { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.tool-kind {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .04em;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  padding: 4px 9px; border-radius: 7px; white-space: nowrap;
}
.tool-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.tool-tag {
  font-size: 11px; color: var(--muted); padding: 3px 9px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line-soft); white-space: nowrap;
}

.tool-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}
.tool-head-text { flex: 1; min-width: 0; }

.tool-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px dashed var(--line);
  margin: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 11px;
  flex-shrink: 0;
  overflow: hidden;
}
.tool-icon::before { content: "icon"; opacity: .55; letter-spacing: .04em; }
.tool-icon:has(img),
.tool-icon:has(svg) { border-style: solid; background: var(--surface); }
.tool-icon:has(img)::before,
.tool-icon:has(svg)::before { content: ""; display: none; }
.tool-icon img,
.tool-icon svg { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.tool-name { font-family: var(--font-display); font-weight: 600; font-size: 25px; letter-spacing: -.01em; margin: 0; line-height: 1.1; }
.tool-cn { font-size: 12.5px; color: var(--muted); display: block; margin-top: 4px; }
.tool-tagline { font-family: var(--font-display); font-style: italic; font-size: 16px; color: var(--accent); margin: 14px 0 0; line-height: 1.35; }
:root[data-lang="zh"] .tool-tagline { font-style: normal; }
.tool-desc { color: var(--ink-soft); font-size: 14.5px; margin: 12px 0 0; line-height: 1.6; }
.tool-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: auto; padding-top: 20px; }
.tool-link {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600;
  padding: 9px 14px; border-radius: 999px; transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.tool-link:active { transform: translateY(1px); }
.tool-link.primary { background: var(--accent); color: var(--on-accent); }
.tool-link.primary:hover { background: var(--accent-2); }
.tool-link.ghost { border: 1px solid var(--line); color: var(--ink-soft); }
.tool-link.ghost:hover { border-color: var(--accent); color: var(--accent); }
.tool-link .arr { transition: transform .2s; }
.tool-link:hover .arr { transform: translate(2px,-2px); }

/* "more coming" tile */
.tool--more {
  align-items: flex-start; justify-content: center; gap: 0;
  background: transparent; border: 1.5px dashed var(--line);
  box-shadow: none; min-height: 200px;
}
.tool--more::after { display: none; }
.tool--more:hover { transform: none; box-shadow: none; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.more-plus { font-family: var(--font-display); font-size: 34px; line-height: 1; color: var(--accent); font-weight: 400; }
.more-title { font-family: var(--font-display); font-weight: 600; font-size: 19px; margin-top: 14px; }
.more-body { color: var(--muted); font-size: 14px; margin: 8px 0 0; }

/* ---- publications : citation list with paper thumbnails ---------------- */
.cite-list { margin-top: clamp(30px, 4vw, 48px); border-top: 1px solid var(--line); }
.cite {
  display: grid; grid-template-columns: 168px 1fr; gap: 28px; align-items: start;
  padding: 28px 8px; border-bottom: 1px solid var(--line);
  transition: background .2s, padding-left .25s;
}
.cite:hover { background: var(--surface); padding-left: 14px; }
.cite-thumb {
  width: 168px; height: 112px; display: block;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: var(--surface-2);
}
.cite-body { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; min-width: 0; }
.cite-no { font-family: var(--font-mono); font-size: 12px; color: var(--faint); letter-spacing: .08em; }
.cite-title {
  font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.32;
  letter-spacing: -.005em; color: var(--ink); text-wrap: pretty;
  transition: color .2s;
}
.cite-title:hover { color: var(--accent); }
.cite-authors { font-size: 14px; color: var(--muted); line-height: 1.5; }
.cite-meta { font-size: 13px; color: var(--muted); }
.cite-venue { color: var(--accent); font-weight: 700; }
.cite-id { font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
.cite-link {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 5px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
}
.cite-link:hover { color: var(--accent); gap: 10px; }
@media (max-width: 720px) {
  .cite { grid-template-columns: 1fr; gap: 16px; }
  .cite-thumb { width: 100%; height: 180px; }
}

/* ---- publications (legacy) --------------------------------------------- */
.pub-list { margin-top: clamp(34px, 5vw, 54px); border-top: 1px solid var(--line); }
.pub {
  display: grid; grid-template-columns: 90px 1fr auto; gap: 26px; align-items: center;
  padding: 26px 8px; border-bottom: 1px solid var(--line);
  transition: background .2s, padding-left .25s;
}
.pub:hover { background: var(--surface); padding-left: 18px; }
.pub-year { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--accent); }
.pub-venue { font-size: 12px; color: var(--muted); display: block; margin-top: 2px; letter-spacing: .02em; }
.pub-title { font-family: var(--font-display); font-size: 19px; font-weight: 600; line-height: 1.3; }
.pub-authors { font-size: 14px; color: var(--muted); margin-top: 5px; }
.pub-id { font-family: var(--font-mono); font-size: 12px; color: var(--faint); margin-top: 4px; }
.pub-go {
  flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink-soft);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.pub:hover .pub-go { background: var(--accent); color: var(--on-accent); border-color: var(--accent); transform: rotate(-45deg); }
.scholar-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 30px; font-weight: 600; color: var(--accent); font-size: 15px; }
.scholar-link:hover { gap: 13px; }

/* ---- team --------------------------------------------------------------- */
.pi-card {
  display: grid; grid-template-columns: 180px 1fr; gap: 36px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 36px; box-shadow: var(--shadow); margin-top: clamp(34px, 5vw, 54px);
}
.pi-avatar {
  aspect-ratio: 1; border-radius: 16px; background:
    repeating-linear-gradient(135deg, var(--plate-a) 0 9px, var(--plate-b) 9px 18px);
  border: 1px solid var(--line); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 40px; color: var(--accent);
}
.pi-name { font-family: var(--font-display); font-weight: 600; font-size: 28px; }
.pi-role { color: var(--accent); font-weight: 600; font-size: 14.5px; margin-top: 6px; }
.pi-affil { color: var(--muted); font-size: 14px; margin-top: 2px; }
.pi-bio { color: var(--ink-soft); font-size: 15.5px; margin-top: 14px; max-width: 62ch; }
.pi-bio a { color: var(--accent); font-weight: 600; border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }

.members-head { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 44px 0 18px; }
:root[data-lang="zh"] .members-head { letter-spacing: .06em; }
.members { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.member { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 14px 16px; transition: border-color .2s, transform .2s; }
.member:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); transform: translateY(-2px); }
.member-ini { width: 42px; height: 42px; flex: none; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-soft); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: var(--accent); font-size: 15px; }
.member-name { font-weight: 600; font-size: 15px; }
.member-role { font-size: 12.5px; color: var(--muted); }
.collab-line { margin-top: 26px; color: var(--ink-soft); font-size: 15px; }
.collab-line b { color: var(--ink); font-weight: 600; }
.note-line { margin-top: 16px; font-size: 13px; color: var(--faint); font-style: italic; }

/* ---- news timeline ------------------------------------------------------ */
.timeline { margin-top: clamp(34px, 5vw, 54px); position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.news-item { position: relative; padding: 0 0 30px 24px; }
.news-item:last-child { padding-bottom: 0; }
.news-item::before { content: ""; position: absolute; left: -26px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--bg); }
.news-date { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); letter-spacing: .04em; }
.news-text { font-size: 16px; color: var(--ink-soft); margin-top: 5px; max-width: 64ch; }
.news-text a { color: var(--ink); border-bottom: 1px solid var(--accent); font-weight: 600; }

/* ---- access & cite ------------------------------------------------------ */
.access-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(34px, 5vw, 54px); }
.way { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.way-head { font-family: var(--font-display); font-weight: 600; font-size: 19px; display: flex; align-items: center; gap: 10px; }
.way-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
.way-body { color: var(--muted); font-size: 15px; margin: 12px 0 0; }
.way-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; color: var(--accent); font-size: 14px; }
.way-link:hover { gap: 10px; }

.bib-block { margin-top: 28px; }
.bib-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.bib-tab { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 600; color: var(--muted); transition: all .2s; }
.bib-tab.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.bib-pane { position: relative; margin-top: 14px; background: var(--ink); border-radius: 14px; padding: 22px 24px; box-shadow: var(--shadow); }
.bib-pane pre { margin: 0; font-family: var(--font-mono); font-size: 13px; line-height: 1.6; color: var(--bg); white-space: pre-wrap; overflow-x: auto; }
.bib-copy { position: absolute; top: 14px; right: 14px; border: 1px solid color-mix(in srgb, var(--bg) 30%, transparent); background: transparent; color: var(--bg); border-radius: 8px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; }
.bib-copy:hover { background: color-mix(in srgb, var(--bg) 14%, transparent); }

/* ---- contact ------------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.contact-rows { margin-top: 26px; border-top: 1px solid var(--line); }
.contact-row { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.contact-row dt { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.contact-row dd { margin: 0; font-size: 15.5px; color: var(--ink-soft); }
.contact-row dd a { color: var(--accent); font-weight: 600; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 40px; box-shadow: var(--shadow); text-align: center; }
.contact-card .seal { width: 60px; height: 60px; font-size: 26px; border-radius: 14px; margin: 0 auto 20px; }
.contact-card p { color: var(--muted); margin: 0 0 22px; }

/* ---- footer (minimal) --------------------------------------------------- */
.site-footer { background: var(--bg-tint); border-top: 1px solid var(--line); padding: 28px 0; }
.footer-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-home { font-size: 14px; color: var(--ink-soft); font-weight: 600; transition: color .2s; }
.footer-home:hover { color: var(--accent); }
.footer-copy { font-size: 13px; color: var(--muted); }

/* ---- reveal animation --------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---- responsive --------------------------------------------------------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .plate { max-width: 380px; }
  .mission-grid, .contact-grid { grid-template-columns: 1fr; }
  .pillars, .sw-grid, .access-grid, .members { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .pi-card { grid-template-columns: 1fr; text-align: center; }
  .pi-avatar { width: 120px; margin: 0 auto; }
  .pub { grid-template-columns: 60px 1fr; }
  .pub-go { display: none; }
}

/* mobile nav drawer */
.mobile-nav { position: fixed; inset: 70px 0 auto; background: var(--surface); border-bottom: 1px solid var(--line); padding: 16px 6vw 24px; display: none; flex-direction: column; gap: 4px; z-index: 49; box-shadow: var(--shadow-lg); }
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 12px 8px; border-radius: 9px; font-size: 16px; color: var(--ink-soft); }
.mobile-nav a:hover { background: var(--surface-2); }

.members { } /* keep specificity anchor */
@media (min-width: 901px) and (max-width: 1100px) {
  .members { grid-template-columns: repeat(2, 1fr); }
}

.cite-abstract {
  width: 100%;
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.cite-abstract > summary {
  display: inline-flex; align-items: center; gap: 6px;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  user-select: none;
  transition: color .15s, border-color .15s, background .15s;
}
.cite-abstract > summary::-webkit-details-marker { display: none; }
.cite-abstract > summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform .2s;
}
.cite-abstract[open] > summary::after { content: "−"; }
.cite-abstract > summary:hover { color: var(--accent); border-color: var(--accent); background: var(--surface); }
.cite-abstract > p {
  margin: 12px 0 4px;
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 78ch;
  text-wrap: pretty;
}
