:root {
  --ink: #06111f;
  --ink-2: #0c1f35;
  --muted: #5d6b7d;
  --line: rgba(11, 31, 53, 0.12);
  --paper: #f7fbff;
  --paper-2: #eef6ff;
  --white: #ffffff;
  --cyan: #38e8ff;
  --blue: #246bfe;
  --teal: #19d3b5;
  --violet: #8b5cf6;
  --glow: 0 0 48px rgba(56, 232, 255, 0.28);
  --shadow: 0 24px 80px rgba(6, 17, 31, 0.16);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }

.site-shell { min-height: 100vh; background: linear-gradient(180deg, #06111f 0, #f7fbff 42%); }
.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 100;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(6, 17, 31, 0.58);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(22px);
  transition: background 0.3s ease, border 0.3s ease, transform 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(11, 31, 53, 0.1);
}
.site-header.is-scrolled .brand,
.site-header.is-scrolled .site-nav a,
.site-header.is-scrolled .nav-toggle span { color: var(--ink); }
.site-header.is-scrolled .nav-toggle span { background: var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand strong { display: block; font-size: 15px; line-height: 1; letter-spacing: -0.02em; }
.brand small { display: block; margin-top: 4px; color: #73eaff; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}
.site-nav a:hover,
.site-nav a.is-active { color: #fff; background: rgba(56, 232, 255, 0.12); }
.site-header.is-scrolled .site-nav a:hover,
.site-header.is-scrolled .site-nav a.is-active { color: var(--blue); background: rgba(36, 107, 254, 0.08); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); }
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; border-radius: 2px; background: #fff; }

section { position: relative; padding: 120px max(24px, calc((100vw - 1180px) / 2)); }
.section-dark { color: #fff; background: radial-gradient(circle at 20% 10%, rgba(36, 107, 254, 0.28), transparent 28%), linear-gradient(135deg, #06111f 0%, #0b213b 52%, #05101d 100%); }
.section-light { background: var(--paper); }
.section-soft { background: linear-gradient(180deg, #eef6ff 0%, #f8fbff 100%); }
.section-heading { max-width: 100%; margin-bottom: 52px; }
.section-heading:not(.section-heading--center) { max-width: 920px; }
.section-heading--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-heading h2 { margin: 0; font-size: clamp(34px, 5vw, 72px); line-height: 0.98; letter-spacing: -0.07em; }
.section-heading p:not(.eyebrow) { max-width: 680px; margin: 20px 0 0; color: var(--muted); font-size: 18px; line-height: 1.8; }
.section-dark .section-heading p:not(.eyebrow) { color: rgba(232, 246, 255, 0.72); }
.eyebrow { margin: 0 0 14px; color: var(--cyan); font-size: 12px; font-weight: 900; letter-spacing: 0.22em; text-transform: uppercase; }

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  gap: 52px;
  padding-top: 110px;
  padding-bottom: 64px;
  overflow: hidden;
}
.hero-content { flex: 1 1 auto; min-width: 0; max-width: 860px; }
.hero-panel { flex: 0 0 auto; width: clamp(260px, 28vw, 380px); }
.hero-canvas,
.hero-grid,
.hero-orb { position: absolute; inset: 0; pointer-events: none; }
.hero-canvas { z-index: 0; opacity: 0.7; }
.hero-grid {
  z-index: 0;
  background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(circle at 52% 42%, black, transparent 70%);
}
.hero-orb { width: 420px; height: 420px; border-radius: 50%; filter: blur(18px); opacity: .42; }
.hero-orb-a { left: -120px; top: 16%; background: radial-gradient(circle, rgba(56,232,255,.52), transparent 68%); animation: float 9s ease-in-out infinite; }
.hero-orb-b { inset: auto -100px 5% auto; background: radial-gradient(circle, rgba(139,92,246,.5), transparent 68%); animation: float 11s ease-in-out infinite reverse; }
.hero-content, .hero-panel { position: relative; z-index: 2; }
.hero h1 { margin: 0; font-size: clamp(42px, 6vw, 88px); line-height: .9; letter-spacing: -0.07em; }
.hero h1 span {
  display: block;
  font-size: clamp(90px, 13vw, 200px);
  color: transparent;
  background: linear-gradient(115deg, #fff 0%, #79f4ff 42%, #246bfe 88%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 32px rgba(56,232,255,.32));
}
.hero-copy { max-width: 670px; margin: 28px 0 0; color: rgba(233, 247, 255, 0.75); font-size: clamp(18px, 2.2vw, 24px); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #06111f; background: linear-gradient(135deg, #77f5ff, #62ffd2); box-shadow: 0 18px 54px rgba(56,232,255,.28); }
.button-ghost { color: #fff; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08); backdrop-filter: blur(18px); }
.button-light { color: var(--ink); border: 1px solid var(--line); background: #fff; box-shadow: 0 14px 34px rgba(6,17,31,.08); }
.hero-panel { display: grid; gap: 16px; }
.panel-card {
  padding: 22px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  box-shadow: var(--glow);
  backdrop-filter: blur(18px);
}
.panel-card span { color: var(--cyan); font-weight: 900; }
.panel-card strong { display: block; margin-top: 16px; font-size: 24px; letter-spacing: -0.04em; }
.panel-card small { display: block; margin-top: 8px; color: rgba(236, 248, 255, .65); }
.scroll-cue { position: absolute; bottom: 32px; left: 50%; z-index: 2; transform: translateX(-50%); color: rgba(255,255,255,.62); font-size: 11px; font-weight: 900; letter-spacing: .24em; text-transform: uppercase; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-card, .research-card, .member-card, .publication-card, .activity-card, .contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow);
}
.stat-card { padding: 28px; background: linear-gradient(180deg, #fff, #edf8ff); }
.stat-card strong { display: block; font-size: clamp(38px, 6vw, 68px); line-height: .9; letter-spacing: -0.08em; }
.stat-card span { display: block; margin-top: 12px; color: var(--muted); font-weight: 800; }

.research-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; perspective: 1200px; }
.research-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  padding: 28px;
  color: #fff;
  background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.045));
  border-color: rgba(255,255,255,.14);
  transform-style: preserve-3d;
  transition: transform .2s ease, border-color .2s ease;
}
.research-card:hover { border-color: rgba(56,232,255,.44); box-shadow: 0 24px 90px rgba(56,232,255,.13); }
.research-card img { position: relative; width: 100%; height: 210px; object-fit: cover; margin: 26px 0; border-radius: 22px; background: rgba(255,255,255,.9); cursor: zoom-in; }
.research-card-img-wrap { position: relative; cursor: zoom-in; }
.research-card-img-wrap::after { content: ''; position: absolute; inset: 0; border-radius: 22px; background: rgba(56,232,255,.08); opacity: 0; transition: opacity .2s; }
.research-card-img-wrap:hover::after { opacity: 1; }
.research-card h3 { margin: 0; font-size: clamp(26px, 3.2vw, 42px); line-height: 1.05; letter-spacing: -0.06em; }
.research-card p { color: rgba(235,249,255,.72); line-height: 1.75; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { padding: 7px 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: #bdf8ff; font-size: 12px; font-weight: 800; background: rgba(255,255,255,.06); }

.team-photo { position: relative; overflow: hidden; margin-bottom: 28px; border-radius: var(--radius-xl); box-shadow: var(--shadow); cursor: zoom-in; }
.team-photo::after { content: '点击放大查看原图'; position: absolute; top: 22px; right: 22px; padding: 9px 12px; border-radius: 999px; color: #fff; background: rgba(6,17,31,.58); backdrop-filter: blur(12px); font-size: 12px; font-weight: 900; opacity: 0; transform: translateY(-6px); transition: opacity .2s ease, transform .2s ease; }
.team-photo:hover::after { opacity: 1; transform: translateY(0); }
.team-photo img { width: 100%; height: min(48vw, 520px); object-fit: cover; transition: transform .4s ease; }
.team-photo:hover img { transform: scale(1.04); }
.team-photo div { position: absolute; left: 28px; bottom: 28px; padding: 16px 18px; border-radius: 18px; color: #fff; background: rgba(6,17,31,.56); backdrop-filter: blur(18px); }
.team-photo strong, .team-photo span { display: block; }
.toolbar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin: 28px 0; }
.search-box { flex: 1 1 320px; display: grid; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.search-box input { width: 100%; height: 52px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; outline: none; background: #fff; box-shadow: 0 12px 28px rgba(6,17,31,.06); }
.search-box input:focus { border-color: rgba(36,107,254,.42); box-shadow: 0 0 0 5px rgba(36,107,254,.08); }
.filter-pills, .publication-years, .activity-years { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-pills button, .publication-years button, .activity-years button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
  font-weight: 900;
}
.filter-pills button.is-active, .publication-years button.is-active, .activity-years button.is-active { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--blue), var(--teal)); }
.member-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.member-card { overflow: hidden; background: #fff; transition: transform .22s ease, box-shadow .22s ease; }
.member-card:hover { transform: translateY(-6px); box-shadow: 0 28px 72px rgba(6,17,31,.18); }
.member-card-img { padding: 28px 28px 0; display: flex; justify-content: center; }
.member-card-img img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; background: #dce9f6; border: 3px solid var(--paper-2); transition: transform .22s ease; flex-shrink: 0; }
.member-card:hover .member-card-img img { transform: scale(1.06); }
.member-card div { padding: 16px 18px 18px; }
.member-card h3 { margin: 0; font-size: 17px; letter-spacing: -0.04em; }
.member-card p { margin: 5px 0 0; color: var(--muted); line-height: 1.5; font-size: 13px; }
.member-card small { display: inline-flex; margin-top: 10px; padding: 5px 9px; border-radius: 999px; color: var(--blue); background: rgba(36,107,254,.08); font-weight: 900; font-size: 11px; }
.load-more { margin: 34px auto 0; display: flex; }
.load-more[hidden] { display: none; }

.publication-years, .activity-years { margin-bottom: 28px; }
.publication-list { display: grid; gap: 16px; }
.publication-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; padding: 24px; background: #fff; }
.publication-year { color: var(--blue); font-size: 28px; font-weight: 900; letter-spacing: -0.06em; }
.publication-card h3 { margin: 0; font-size: 20px; line-height: 1.35; letter-spacing: -0.03em; }
.publication-card p { margin: 10px 0 0; color: var(--muted); line-height: 1.7; }
.author-group { color: var(--blue); font-weight: 900; }
.pub-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pub-links a { padding: 7px 10px; border-radius: 999px; color: var(--ink); background: var(--paper-2); font-size: 12px; font-weight: 900; }

.activity-grid { columns: 3 280px; column-gap: 18px; }
.activity-card { display: inline-block; width: 100%; overflow: hidden; margin: 0 0 18px; background: #fff; cursor: pointer; transition: transform .22s ease; }
.activity-card:hover { transform: translateY(-4px); }
.activity-img-wrap { overflow: hidden; cursor: zoom-in; }
.activity-img-wrap img { width: 100%; min-height: 220px; max-height: 360px; object-fit: cover; transition: transform .32s ease; }
.activity-card:hover .activity-img-wrap img { transform: scale(1.04); }
.activity-card > div { padding: 20px; }
.activity-card h3 { margin: 8px 0 0; font-size: 22px; line-height: 1.18; letter-spacing: -0.04em; }
.activity-card p { color: var(--muted); line-height: 1.65; }
.activity-desc { position: relative; max-height: 4.95em; overflow: hidden; transition: max-height .4s ease; }
.activity-desc.is-expanded { max-height: 999px; }
.activity-desc p { color: var(--muted); line-height: 1.75; margin: 0 0 0.6em; }
.activity-desc p:last-child { margin-bottom: 0; }
.activity-desc::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2em; background: linear-gradient(transparent, rgba(255,255,255,0)); pointer-events: none; }
.activity-desc:not(.is-expanded)::after { display: block; }
.activity-desc.is-expanded::after { display: none; }
.activity-readmore { display: inline-block; margin-top: 10px; color: var(--blue); font-weight: 900; font-size: 13px; cursor: pointer; }
.activity-meta { color: var(--blue); font-weight: 900; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }

.contact { padding-bottom: 80px; }
.contact-card { padding: clamp(28px, 5vw, 56px); color: #fff; background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.04)); border-color: rgba(255,255,255,.14); }
.contact-card h2 { margin: 0; max-width: 760px; font-size: clamp(38px, 6vw, 86px); line-height: .96; letter-spacing: -0.07em; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 42px; }
.contact-grid div { padding: 18px; border: 1px solid rgba(255,255,255,.14); border-radius: 20px; background: rgba(255,255,255,.06); }
.contact-grid strong, .contact-grid span { display: block; }
.contact-grid span { margin-top: 8px; color: rgba(234,248,255,.68); line-height: 1.7; }
.site-footer { display: flex; justify-content: space-between; gap: 18px; padding: 26px max(24px, calc((100vw - 1180px) / 2)); color: rgba(255,255,255,.68); background: #06111f; }
.site-footer a { color: var(--cyan); font-weight: 800; }

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #fff;
  background: rgba(3, 8, 15, .92);
  backdrop-filter: blur(16px);
}
.image-modal[hidden] { display: none; }
.image-modal figure { max-width: min(1080px, 92vw); margin: 0; text-align: center; }
.image-modal img { max-height: 78vh; margin: 0 auto; border-radius: 18px; box-shadow: 0 32px 100px rgba(0,0,0,.5); }
.image-modal figcaption { margin-top: 14px; color: rgba(255,255,255,.72); }
.modal-close, .modal-arrow { position: absolute; border: 0; color: #fff; background: rgba(255,255,255,.1); cursor: pointer; }
.modal-close { top: 24px; right: 24px; width: 48px; height: 48px; border-radius: 50%; font-size: 32px; }
.modal-arrow { top: 50%; width: 54px; height: 72px; border-radius: 999px; transform: translateY(-50%); font-size: 54px; }
.modal-prev { left: 24px; }
.modal-next { right: 24px; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .72s ease, transform .72s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@keyframes float { 0%, 100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(24px,-18px,0) scale(1.08); } }

@media (max-width: 900px) {
  .site-header { top: 10px; width: calc(100% - 20px); }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: calc(100% + 10px); right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; padding: 12px; border-radius: 24px; background: rgba(6,17,31,.94); }
  .site-nav.is-open { display: flex; }
  .site-header.is-scrolled .site-nav a { color: #fff; }
  .hero { grid-template-columns: 1fr; padding-top: 130px; }
  .hero-panel { grid-template-columns: 1fr; }
  section { padding-top: 86px; padding-bottom: 86px; }
  .stats-grid, .research-grid, .member-grid, .contact-grid { grid-template-columns: 1fr; }
  .publication-card { grid-template-columns: 1fr; }
  .activity-grid { columns: 1; }
  .site-footer { flex-direction: column; }
}

@media (min-width: 901px) and (max-width: 1160px) {
  .member-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
