/* ==========================================================================
   思域众创 · 专创融合基地官网  —  设计系统
   中性墨色为底 + 单一朱砂强调 · 系统 CJK 字体 · 原生 CSS
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  --bg:        #f5f7fa;
  --bg-2:      #ecf0f5;
  --surface:   #ffffff;
  --surface-2: #e6ebf1;
  --media-bg:  #dfe5ec;

  --ink:       #0d1521;
  --ink-2:     #455364;
  --ink-3:     #6c7a8c;

  --line:      rgba(13, 21, 33, .10);
  --line-2:    rgba(13, 21, 33, .17);

  --accent:      #155491;
  --accent-2:    #0f4076;
  --accent-ink:  #ffffff;
  --accent-a08:  rgba(21, 84, 145, .08);
  --accent-a16:  rgba(21, 84, 145, .16);
  --accent-a30:  rgba(21, 84, 145, .30);

  --header-bg:       rgba(245, 247, 250, .82);
  --header-bg-stuck: rgba(245, 247, 250, .93);
  --scrim:           rgba(6, 10, 16, .55);
  --lightbox-bg:     rgba(243, 246, 250, .94);
  --hover-tint:      rgba(13, 21, 33, .028);

  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC",
               "Microsoft YaHei UI", "Microsoft YaHei", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", "Roboto Mono",
               Consolas, "Liberation Mono", monospace;

  --shell-max: 1240px;
  --pad-x:     clamp(20px, 5vw, 56px);
  --sec-py:    clamp(72px, 10vw, 140px);
  --header-h:  72px;

  --r-s: 4px;
  --r-m: 12px;
  --r-l: 20px;

  --ease:     cubic-bezier(.16, 1, .3, 1);
  --ease-out: cubic-bezier(.22, .61, .36, 1);

  --shadow-frame: 0 24px 50px -30px rgba(13, 21, 33, .30), 0 2px 8px -3px rgba(13, 21, 33, .10);
  --shadow-drawer: -28px 0 64px -34px rgba(13, 21, 33, .32);
  --inset-edge: inset 0 1px 0 rgba(255, 255, 255, .7);
  --grain: .02;
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --bg:        #080c13;
  --bg-2:      #0c121b;
  --surface:   #111a25;
  --surface-2: #16212e;
  --media-bg:  #05080e;

  --ink:       #e7eef6;
  --ink-2:     #9cabbd;
  --ink-3:     #6f7e91;

  --line:      rgba(180, 200, 225, .10);
  --line-2:    rgba(180, 200, 225, .18);

  --accent:      #4e97d8;
  --accent-2:    #74b0e6;
  --accent-ink:  #06121f;
  --accent-a08:  rgba(78, 151, 216, .12);
  --accent-a16:  rgba(78, 151, 216, .20);
  --accent-a30:  rgba(78, 151, 216, .34);

  --header-bg:       rgba(8, 12, 19, .80);
  --header-bg-stuck: rgba(8, 12, 19, .90);
  --scrim:           rgba(3, 6, 10, .62);
  --lightbox-bg:     rgba(6, 9, 14, .93);
  --hover-tint:      rgba(255, 255, 255, .026);

  --shadow-frame: 0 40px 80px -42px rgba(0, 0, 0, .72), 0 2px 8px -3px rgba(0, 0, 0, .5);
  --shadow-drawer: -28px 0 64px -30px rgba(0, 0, 0, .6);
  --inset-edge: inset 0 1px 0 rgba(255, 255, 255, .05);
  --grain: .035;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* film grain */
body::after {
  content: "";
  position: fixed; inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.18; letter-spacing: -.012em; }
strong { font-weight: 600; color: var(--ink); }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-s);
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  z-index: 9999;
  padding: 12px 20px;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 0 0 var(--r-m) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */
.shell {
  width: 100%;
  max-width: calc(var(--shell-max) + var(--pad-x) * 2);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding-block: var(--sec-py); border-top: 1px solid var(--line); }
.section--alt { background: var(--bg-2); }
.section:first-of-type { border-top: 0; }
section[id] { scroll-margin-top: calc(var(--header-h) + 14px); }

.section__head { max-width: 760px; margin-bottom: clamp(34px, 5vw, 62px); }
.section__title { font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.16; }
.section__desc {
  margin-top: 16px;
  font-size: clamp(.98rem, 1.4vw, 1.08rem);
  color: var(--ink-2);
  max-width: 62ch;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 20px;
}
.eyebrow__idx { color: var(--accent); }
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.8s var(--ease-out) infinite;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: .95rem; font-weight: 600; letter-spacing: .01em;
  border: 1px solid transparent;
  transition: transform .3s var(--ease), background .3s var(--ease),
              border-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
  will-change: transform;
}
.btn__icon { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.btn:hover .btn__icon { transform: translateX(4px); }
.btn:active { transform: scale(.975); }

.btn--solid { background: var(--accent); color: var(--accent-ink); }
.btn--solid:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn--outline { border-color: var(--line-2); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); background: var(--hover-tint); transform: translateY(-2px); }
.btn--ghost { color: var(--ink-2); }
.btn--ghost:hover { color: var(--ink); }
.btn--sm { padding: 9px 17px; font-size: .85rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips li {
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: .04em;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--ink-2);
}

/* ---------- Stat strip ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  padding-top: 22px;
  gap: 0;
}
.stat-strip__item { padding-left: 20px; border-left: 1px solid var(--line); }
.stat-strip__item:first-child { padding-left: 0; border-left: 0; }
.stat-strip dt {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 8px;
}
.stat-strip dd {
  font-family: var(--font-mono); font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-strip .unit { color: var(--accent); margin-left: 1px; }

/* ---------- Location / recruitment groups ---------- */
.loc {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(30px, 4.5vw, 52px);
  border-top: 1px solid var(--line);
}
.loc li {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.loc li::before {
  content: ""; flex: none;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}
.loc__v {
  font-size: clamp(1.15rem, 2.6vw, 1.65rem);
  font-weight: 600; letter-spacing: .01em; line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.loc--stack { grid-template-columns: 1fr; margin-top: 12px; }

/* ---------- Frame / lightbox ---------- */
.frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-m);
  border: 1px solid var(--line-2);
  background: var(--media-bg);
  box-shadow: var(--shadow-frame), var(--inset-edge);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
[data-lightbox] { cursor: zoom-in; }
[data-lightbox] img { transition: transform 1.2s var(--ease), filter .7s var(--ease); }
[data-lightbox]:hover img { transform: scale(1.05); filter: saturate(1.05) brightness(1.03); }

.lightbox {
  position: fixed; inset: 0; z-index: 9000;
  display: grid; place-items: center;
  padding: clamp(16px, 4vw, 48px);
  background: var(--lightbox-bg);
  backdrop-filter: blur(8px);
  animation: fadeIn .3s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: min(1100px, 92vw); }
.lightbox img {
  max-width: 100%; max-height: 82vh; margin-inline: auto;
  border-radius: var(--r-m); box-shadow: var(--shadow-frame);
}
.lightbox figcaption {
  margin-top: 16px; text-align: center;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .04em; color: var(--ink-2);
}
.lightbox__close {
  position: absolute; top: clamp(14px, 3vw, 28px); right: clamp(14px, 3vw, 28px);
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); background: var(--surface);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.lightbox__close:hover { transform: rotate(90deg); background: var(--surface-2); }
.lightbox__close svg { width: 18px; height: 18px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-2); background: var(--surface);
  transition: background .3s var(--ease); }
.lightbox__nav:hover { background: var(--surface-2); }
.lightbox__nav svg { width: 20px; height: 20px; }
.lightbox__nav--prev { left: clamp(10px, 3vw, 28px); }
.lightbox__nav--next { right: clamp(10px, 3vw, 28px); }
@media (max-width: 700px) { .lightbox__nav { display: none; } }

/* ---------- Reveal ---------- */
html.js .reveal {
  opacity: 0;
  filter: blur(9px);
  transform: translate3d(0, 26px, 0);
  transition: opacity .95s var(--ease), transform .95s var(--ease), filter .95s var(--ease);
  transition-delay: calc(var(--d, 0) * 1ms);
}
html.js .reveal.is-in { opacity: 1; filter: blur(0); transform: none; }

/* ==========================================================================
   Header
   ========================================================================== */
.utility { border-bottom: 1px solid var(--line); background: var(--bg); }
.utility__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 40px;
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: .08em; color: var(--ink-3);
}
.utility__meta { display: flex; align-items: center; gap: 14px; }
.utility__sep { width: 1px; height: 12px; background: var(--line-2); }
.utility__tel { color: var(--ink-2); transition: color .3s var(--ease); }
.utility__tel:hover { color: var(--accent); }

.site-header {
  position: sticky; top: 0; z-index: 800;
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
.site-header.is-stuck { background: var(--header-bg-stuck); border-bottom-color: var(--line); }
@media (min-width: 901px) {
  .site-header { backdrop-filter: blur(16px) saturate(150%); }
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: clamp(12px, 1.6vw, 18px); min-width: 0; }
.brand__mark { height: 38px; width: auto; flex: 0 0 auto; display: block; }
.brand__mark--inverted { display: none; }
:root[data-theme="dark"] .brand__mark:not(.brand__mark--inverted) { display: none; }
:root[data-theme="dark"] .brand__mark--inverted { display: block; }
.brand__tag {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
  padding-left: 12px; margin-left: 1px; border-left: 1px solid var(--line);
}

.primary-nav__list { display: flex; align-items: center; gap: 4px; }
.primary-nav__foot { display: none; }
.nav-link {
  position: relative;
  display: inline-block; padding: 8px 14px;
  font-size: .92rem; color: var(--ink-2);
  border-radius: var(--r-s);
  transition: color .3s var(--ease);
}
.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link.is-current { color: var(--ink); }
.nav-link.is-current::after { transform: scaleX(1); }

.nav-peer { margin-left: 8px; padding-left: 10px; border-left: 1px solid var(--line); }
.nav-link--peer { display: inline-flex; align-items: center; color: var(--accent); }
.nav-link--peer:hover { color: var(--accent); }
.nav-peer__icon { width: 11px; height: 11px; flex: 0 0 auto; margin-left: 5px; }

.site-header__actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  position: relative; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.theme-toggle:hover { background: var(--hover-tint); }
.theme-toggle__icon { grid-area: 1 / 1; width: 18px; height: 18px; color: var(--ink-2);
  transition: opacity .4s var(--ease), transform .5s var(--ease); }
.theme-toggle__icon--sun { opacity: 0; transform: rotate(-90deg) scale(.4); }
:root[data-theme="dark"] .theme-toggle__icon--moon { opacity: 0; transform: rotate(90deg) scale(.4); }
:root[data-theme="dark"] .theme-toggle__icon--sun { opacity: 1; transform: none; }

.burger { display: none; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-2); }
.burger span { display: block; width: 16px; height: 1.6px; margin: 3.4px auto; background: var(--ink);
  transition: transform .35s var(--ease), opacity .3s var(--ease); }
.nav-open .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.nav-scrim { position: fixed; inset: 0; z-index: 790; background: var(--scrim);
  opacity: 0; transition: opacity .4s var(--ease); }
.nav-scrim.is-visible { opacity: 1; }

/* ==========================================================================
   Hero (index) — full-bleed group-photo carousel
   ========================================================================== */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: #070b12;
  color: #fff;
  isolation: isolate;
  --accent: #6db1ee;
  --accent-2: #93c8f5;
  --accent-a30: rgba(120, 180, 235, .42);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0;
  transition: opacity 1.8s var(--ease); }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero__slide.is-active img { animation: kenburns 10s var(--ease-out) both; }

.hero__scrim { position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(6,7,9,.82) 0%, rgba(6,7,9,.34) 42%, rgba(6,7,9,.12) 66%, rgba(6,7,9,.42) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%;
  /* 下内边距下限 96px：为底部轮播控制条（箭头+指示点）预留带子，避免压到文案 */
  padding-block: clamp(48px, 9vw, 104px) clamp(96px, 9vw, 104px); }
.hero__copy { max-width: 900px; }

.hero__kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-sans);
  font-size: clamp(17px, 2.6vw, 24px); font-weight: 700; letter-spacing: .06em;
  color: rgba(255,255,255,.92);
  margin-bottom: clamp(18px, 3vw, 28px);
  opacity: 0; animation: focusIn 1s var(--ease) .1s both;
}
.hero__kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2);
  box-shadow: 0 0 0 0 var(--accent-a30); animation: pulse 2.8s var(--ease-out) infinite; }

.hero__title {
  font-size: clamp(2.7rem, 9vw, 6rem);
  line-height: 1.02; letter-spacing: -.02em; font-weight: 700;
  text-shadow: 0 2px 40px rgba(0,0,0,.35);
  opacity: 0; animation: focusIn 1.15s var(--ease) .28s both;
}
.hero__title .accent { color: var(--accent-2); }

.hero__motto {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: clamp(8px, 1.6vw, 18px);
  margin-top: clamp(22px, 3.4vw, 38px);
}
.hero__motto span {
  position: relative;
  padding-left: clamp(8px, 1.6vw, 18px);
  font-size: clamp(1.15rem, 2.9vw, 2rem); font-weight: 600; letter-spacing: .04em;
  color: rgba(255,255,255,.96);
  opacity: 0; animation: slideFocus .95s var(--ease) both;
}
.hero__motto span:first-child { padding-left: 0; }
.hero__motto span:not(:first-child)::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 1px; height: 1.05em; background: rgba(255,255,255,.4);
  transform: translateY(-50%);
}
.hero__motto span:nth-child(1) { animation-delay: .62s; }
.hero__motto span:nth-child(2) { animation-delay: .74s; }
.hero__motto span:nth-child(3) { animation-delay: .86s; }
.hero__motto span:nth-child(4) { animation-delay: .98s; }

.hero__foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  margin-top: clamp(30px, 5vw, 52px);
  opacity: 0; animation: focusIn 1s var(--ease) 1.15s both;
}
.hero__foot .btn--solid { background: #fff; color: #0d1521; }
.hero__foot .btn--solid:hover { background: #155491; color: #fff; }
.hero__foot .btn--outline { border-color: rgba(255,255,255,.4); color: #fff; }
.hero__foot .btn--outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* 底部轮播控制条：左箭头 / 居中指示点 / 右箭头，落在 .hero__inner 预留的下内边距带内 */
.hero__controls {
  position: absolute; z-index: 4; left: 0; right: 0;
  bottom: clamp(24px, 4vw, 44px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-inline: var(--pad-x);
}
.hero__dots { display: flex; gap: 8px; }
.hero__dots button { width: 26px; height: 3px; border-radius: 2px;
  background: rgba(255,255,255,.32); transition: background .4s var(--ease), width .4s var(--ease); }
.hero__dots button.is-active { background: #fff; width: 40px; }

.hero__arrow {
  flex: 0 0 auto;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.32);
  background: rgba(7,11,18,.38); color: #fff; cursor: pointer;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.hero__arrow svg { width: 20px; height: 20px; }
@media (hover: hover) {
  .hero__arrow:hover { background: rgba(7,11,18,.62); border-color: #fff; }
}

/* ---------- 并列站点横幅（主页互跳入口） ---------- */
.peer-strip { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.peer-strip__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: clamp(18px, 3vw, 36px); padding-block: clamp(26px, 4.4vw, 46px);
}
.peer-strip__kicker {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px;
}
.peer-strip__title { font-size: clamp(1.3rem, 2.8vw, 1.8rem); font-weight: 700; letter-spacing: -.015em; }
.peer-strip__desc { margin-top: 8px; font-size: .95rem; color: var(--ink-2); max-width: 54ch; }
.peer-strip__btn { flex: 0 0 auto; }

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */
.page-hero { padding-block: clamp(64px, 12vw, 132px) clamp(40px, 6vw, 64px); border-bottom: 1px solid var(--line); }
.page-hero__title { font-size: clamp(2.1rem, 5.4vw, 3.4rem); line-height: 1.08; letter-spacing: -.02em; max-width: 18ch; }
.page-hero__lead { margin-top: 20px; font-size: clamp(1rem, 1.5vw, 1.14rem); color: var(--ink-2); max-width: 56ch; }

/* ==========================================================================
   Intro / prose (about)
   ========================================================================== */
.intro { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(28px, 5vw, 72px); }
.intro__sticky { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 24px; }
.pull-quote { padding-left: 22px; border-left: 2px solid var(--accent); }
.pull-quote p { font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.5; font-weight: 500; letter-spacing: -.01em; }
.pull-quote cite { display: block; margin-top: 16px; font-style: normal;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; color: var(--ink-3); line-height: 1.7; }

.prose { max-width: 68ch; }
.prose + .prose { margin-top: clamp(30px, 4vw, 46px); }
.prose h3 { font-size: clamp(1.12rem, 2vw, 1.4rem); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.prose h3 svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.prose p { color: var(--ink-2); line-height: 1.95; text-wrap: pretty; }
.prose p + p { margin-top: 14px; }
.prose__quote { margin-top: 18px; padding: 16px 20px; border-radius: var(--r-m);
  background: linear-gradient(90deg, var(--accent-a08), transparent 70%); border: 1px solid var(--line);
  color: var(--ink) !important; font-weight: 500; }

/* ---------- People (faculty) ---------- */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 5vw, 64px); }
.person { padding: 22px 0; border-top: 1px solid var(--line); }
.person__name { font-size: 1.12rem; font-weight: 700; }
.person__role { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .05em; color: var(--accent); margin-top: 3px; }
.person__meta { margin-top: 10px; font-size: .92rem; color: var(--ink-2); line-height: 1.7; }
.person--lead { grid-column: 1 / -1; }
.person--lead .person__name { font-size: 1.35rem; }

/* ==========================================================================
   Directions (research)
   ========================================================================== */
.dirs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 5vw, 64px); }
.dir { padding: 24px 0; border-top: 1px solid var(--line); display: grid;
  grid-template-columns: auto 1fr; gap: 4px 18px; align-items: baseline; }
.dir__idx { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: .1em; }
.dir__name { font-size: 1.16rem; font-weight: 700; }
.dir__desc { grid-column: 1 / -1; margin-top: 8px; color: var(--ink-2); font-size: .95rem; line-height: 1.75; }

/* ---------- Tracks (research detail) ---------- */
.tracks { display: grid; gap: clamp(48px, 8vw, 96px); }
.track { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 5vw, 64px); align-items: center; }
.track__media .frame { aspect-ratio: 16 / 11; }
.track__idx { font-family: var(--font-mono); font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--line-2); margin-bottom: 10px; }
.track__text h3 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); }
.track__text p { margin-top: 14px; color: var(--ink-2); line-height: 1.9; max-width: 52ch; }
.track--flip .track__media { order: 2; }

/* ==========================================================================
   Gallery (works)
   ========================================================================== */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(14px, 2vw, 22px); }
.g-item { grid-column: span 2; }
.g-item--wide { grid-column: span 3; }
.g-item .frame { aspect-ratio: 4 / 3; }
.g-item--wide .frame { aspect-ratio: 16 / 10; }
.g-item figcaption { margin-top: 14px; }
.g-item .k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.g-item h3 { font-size: 1.06rem; margin-top: 5px; }
.g-item p { font-size: .9rem; color: var(--ink-2); margin-top: 6px; line-height: 1.7; }

/* ---------- Past data (往届) ---------- */
.prevdata { border: 1px solid var(--line-2); border-radius: var(--r-l); padding: clamp(26px, 4vw, 44px);
  background: var(--surface); }
.prevdata__tag { display: inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-3); border: 1px dashed var(--line-2); border-radius: 999px;
  padding: 5px 14px; margin-bottom: 20px; }
.prevdata__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 4vw, 44px); margin-top: 8px; }
.prevdata__col h4 { font-size: 1rem; margin-bottom: 10px; }
.prevdata__col ul { display: grid; gap: 8px; }
.prevdata__col li { position: relative; padding-left: 18px; font-size: .92rem; color: var(--ink-2); line-height: 1.65; }
.prevdata__col li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px;
  border-radius: 50%; background: var(--line-2); }

/* ==========================================================================
   Honors
   ========================================================================== */
.honor-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; margin-bottom: clamp(30px, 4vw, 50px); }
.honor-summary__cell { background: var(--bg); padding: 22px 20px; }
.section--alt .honor-summary__cell { background: var(--bg-2); }
.honor-summary .num { font-family: var(--font-mono); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.honor-summary .num .unit { color: var(--accent); }
.honor-summary .lbl { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-top: 8px; }

.certs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 18px); }
.cert .frame { aspect-ratio: 4 / 3; }
.cert .frame img { object-fit: contain; background: var(--surface); padding: 8px; }
.cert figcaption { margin-top: 10px; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .02em; line-height: 1.5; color: var(--ink-2); }
.cert figcaption .yr { color: var(--accent); }

/* ==========================================================================
   News / timeline
   ========================================================================== */
.timeline { display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 120px 1fr; gap: clamp(16px, 3vw, 40px);
  padding: 22px 0; border-top: 1px solid var(--line); align-items: baseline; }
.tl-item__date { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .04em; color: var(--accent); }
.tl-item__title { font-size: 1.08rem; font-weight: 600; line-height: 1.5; }
.tl-item__desc { margin-top: 6px; color: var(--ink-2); font-size: .94rem; line-height: 1.75; }
.tl-item--lead { }
.tl-item--lead .tl-item__title { font-size: 1.28rem; }
.tl-tag { display: inline-block; margin-left: 10px; vertical-align: middle; font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent);
  border-radius: 999px; padding: 3px 9px; }
.archive { margin-top: clamp(28px, 4vw, 44px); }
.archive__head { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 6px; }
.archive .tl-item { grid-template-columns: 120px 1fr; }
.archive .tl-item__title { font-weight: 500; font-size: 1rem; color: var(--ink-2); }

/* news teaser (index) */
.news-list { display: grid; gap: 0; }
.news-row { display: grid; grid-template-columns: 108px 1fr auto; gap: 20px; align-items: center;
  padding: 20px 0; border-top: 1px solid var(--line); transition: padding-inline .35s var(--ease), background .35s var(--ease); }
.news-row:hover { padding-inline: 14px; background: var(--hover-tint); }
.news-row__date { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); letter-spacing: .03em; }
.news-row__title { font-size: 1.02rem; font-weight: 500; }
.news-row__arrow { color: var(--ink-3); transition: transform .35s var(--ease), color .35s var(--ease); }
.news-row:hover .news-row__arrow { transform: translateX(4px); color: var(--accent); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(30px, 5vw, 72px); }
.contact__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }

.places { display: grid; gap: 0; }
.place { padding: 24px 0; border-top: 1px solid var(--line); }
.place:first-child { border-top: 0; padding-top: 0; }
.place__tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.place__tag--accent { color: var(--accent); }
.place h3 { font-size: 1.14rem; margin-top: 8px; display: flex; align-items: center; gap: 10px; }
.place h3 svg { width: 18px; height: 18px; color: var(--accent); }
.place p { margin-top: 6px; color: var(--ink-2); font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta { text-align: left; }
.cta__box { border: 1px solid var(--line-2); border-radius: var(--r-l); padding: clamp(32px, 5vw, 60px);
  background: var(--surface); box-shadow: var(--shadow-frame); display: grid; gap: 22px; }
.cta__box h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); max-width: 20ch; }
.cta__box p { color: var(--ink-2); max-width: 52ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-block: clamp(48px, 7vw, 80px) 32px; }
.site-footer__inner { display: grid; grid-template-columns: 1.6fr auto 1fr; gap: clamp(28px, 5vw, 60px); }
.site-footer__brand .brand__mark { height: 34px; }
.site-footer__brand p { margin-top: 14px; color: var(--ink-2); font-size: .92rem; max-width: 34ch; }
.site-footer__nav { display: grid; gap: 10px; align-content: start; }
.site-footer__nav a { font-size: .92rem; color: var(--ink-2); transition: color .3s var(--ease); }
.site-footer__nav a:hover { color: var(--accent); }
.site-footer__nav h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.site-footer__end { display: grid; gap: 8px; align-content: start; font-size: .9rem; color: var(--ink-2); }
.to-top { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); transition: color .3s var(--ease); }
.to-top:hover { color: var(--accent); }
.to-top svg { width: 14px; height: 14px; }
.site-footer__copy { grid-column: 1 / -1; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: var(--ink-3); }
.site-footer__beian { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--ink-3); }
.site-footer__beian a { color: inherit; transition: color .3s var(--ease); }
.site-footer__beian a:hover { color: var(--accent); }

/* ---------- Scroll rail ---------- */
.scroll-rail { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 950; pointer-events: none; }
.scroll-rail__bar { height: 100%; transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* ==========================================================================
   Keyframes
   ========================================================================== */
@keyframes focusIn {
  from { opacity: 0; filter: blur(16px); transform: translate3d(0, 20px, 0) scale(1.015); }
  to   { opacity: 1; filter: blur(0); transform: none; }
}
@keyframes slideFocus {
  from { opacity: 0; filter: blur(10px); transform: translate3d(-28px, 0, 0); }
  to   { opacity: 1; filter: blur(0); transform: none; }
}
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1.15); } }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-a30); }
  55%      { box-shadow: 0 0 0 9px transparent; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ==========================================================================
   Responsive
   ========================================================================== */
/* 901–1280：导航收窄。上界从 1180 提到 1280，是因为新增并列站点入口（第 8 项，约 132px）后，
   1181–1213px 区间会溢出约 32px——刚脱离收窄档恢复完整间距，.shell 可用宽度还没长回来。 */
@media (min-width: 901px) and (max-width: 1280px) {
  .primary-nav__list { gap: 0; }
  .nav-link { padding: 8px 11px; }
  .nav-peer { margin-left: 4px; padding-left: 6px; }
  .nav-peer__icon { display: none; }
}

/* CTA 与品牌副标的隐藏边界维持原样，不随上面那条一起放宽 */
@media (min-width: 901px) and (max-width: 1180px) {
  .site-header__cta { display: none; }
  .brand__tag { display: none; }
}

@media (max-width: 1080px) {
  .intro, .track, .contact { grid-template-columns: 1fr; }
  .intro__sticky { position: static; }
  .track--flip .track__media { order: 0; }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .g-item, .g-item--wide { grid-column: span 2; }
  .g-item--wide .frame { aspect-ratio: 4 / 3; }
  .certs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .utility { display: none; }
  :root { --header-h: 66px; }
  .site-header { background: var(--header-bg-stuck); }
  .primary-nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 810;
    width: min(80vw, 340px);
    background: var(--surface);
    border-left: 1px solid var(--line);
    box-shadow: var(--shadow-drawer);
    transform: translateX(100%);
    transition: transform .45s var(--ease);
    padding: calc(var(--header-h) + 24px) 28px 28px;
    overflow-y: auto;
  }
  .nav-open .primary-nav { transform: none; }
  .primary-nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { padding: 13px 6px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav-link::after { display: none; }
  .nav-link.is-current { color: var(--accent); }
  .nav-peer { margin: 0; padding: 0; border-left: 0; }
  .primary-nav__foot { margin-top: 26px; display: grid; gap: 14px; }
  .primary-nav__foot .btn { justify-content: center; }
  .primary-nav__note { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
  .burger { display: block; }
  .site-header__cta { display: none; }
  .brand__tag { display: none; }
  .brand__mark { height: 34px; }
  /* 轮播控制条：窄屏箭头缩到 44px 触摸尺寸 */
  .hero__arrow { width: 44px; height: 44px; }
  .hero__arrow svg { width: 18px; height: 18px; }
  .peer-strip__btn { flex: 1 1 100%; justify-content: center; }
}

@media (max-width: 700px) {
  :root { --pad-x: 20px; --sec-py: clamp(56px, 13vw, 84px); }

  /* 标题更克制，避免撑破窄屏 */
  .section__title { font-size: clamp(1.55rem, 6.4vw, 2.1rem); }
  .page-hero { padding-block: clamp(44px, 12vw, 72px) clamp(30px, 8vw, 44px); }
  .page-hero__title { font-size: clamp(1.9rem, 8.6vw, 2.6rem); }
  .page-hero__lead { font-size: 1rem; }
  .hero__title { font-size: clamp(2.35rem, 12vw, 3.6rem); }
  .hero__motto { gap: 10px 16px; }
  .hero__motto span { font-size: 1.1rem; }

  /* 数据条：窄屏两列 */
  .stat-strip, .honor-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-strip { row-gap: 2px; }
  .stat-strip__item { padding: 16px 0; }
  .stat-strip__item:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stat-strip__item:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }

  /* 列表类模块：单列 */
  .people, .dirs, .prevdata__grid { grid-template-columns: 1fr; column-gap: 0; }
  .loc { grid-template-columns: 1fr; }

  /* 作品 / 奖状网格 */
  .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: 1fr; }
  .g-item, .g-item--wide { grid-column: 1 / -1; }

  /* 时间线 / 新闻：日期与标题上下堆叠（含更高特异性的 .archive） */
  .tl-item, .archive .tl-item { grid-template-columns: 1fr; gap: 4px; }
  .news-row { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; }
  .news-row:hover { padding-inline: 0; background: none; }
  .news-row__arrow { display: none; }

  .site-footer__inner { grid-template-columns: 1fr; gap: 34px; }
  .site-footer__end { gap: 6px; }
}

@media (max-width: 440px) {
  :root { --pad-x: 18px; }
  .brand__mark { height: 30px; }
  .btn { padding: 12px 20px; font-size: .92rem; }
  .hero__foot { gap: 12px; }
  .hero__foot .btn, .cta__actions .btn { flex: 1 1 auto; justify-content: center; }
  .section__head { margin-bottom: 28px; }
  .cta__box { padding: clamp(26px, 7vw, 40px); }
}

@media (max-width: 380px) {
  .stat-strip, .honor-summary { grid-template-columns: 1fr; }
  .stat-strip__item:nth-child(even) { padding-left: 0; border-left: 0; }
  .certs { gap: 10px; }
}

/* ---------- Motion / touch / print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html.js .reveal { opacity: 1; filter: none; transform: none; }
  .hero__kicker, .hero__title, .hero__motto span, .hero__foot { opacity: 1; filter: none; }
  .hero__slide.is-active img { animation: none; }
}

@media (hover: none) {
  [data-lightbox]:hover img { transform: none; filter: none; }
  .btn:hover { transform: none; }
  .news-row:hover { padding-inline: 0; background: none; }
  /* 扩大命中区但不扩大可见色块：background 默认按 border-box 绘制，
     不加 background-clip 会把 padding 也涂成色块（移动端曾因此出现大灰块） */
  .hero__dots button { box-sizing: content-box; padding-block: 11px; margin-block: -11px; background-clip: content-box; }
  .theme-toggle { width: 44px; height: 44px; }
  .burger { width: 44px; height: 44px; }
  .lightbox__close { width: 46px; height: 46px; }
}

@media print {
  .utility, .site-header, .hero__bg, .hero__scrim, .scroll-rail,
  .burger, .theme-toggle, .lightbox, .hero__controls, .hero__dots, .hero__arrow { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { min-height: auto; color: #000; }
}
