:root {
  --primary-900: #1a3352;
  --primary-800: #243f5f;
  --primary-700: #2f4c6c;
  --primary-600: #385e8a;
  --primary-400: #5a82b0;
  --primary-200: #cbddf4;
  --primary-100: #e8f1fa;

  --surface: #ffffff;
  --surface-muted: #f5f7fa;
  --surface-subtle: #eef2f7;
  --border: #dde4ed;
  --text: #1a2332;
  --text-secondary: #5a6578;
  --text-muted: #8b95a5;

  --accent-gold: #c9a227;
  --shadow-sm: 0 1px 3px rgba(26, 51, 82, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 51, 82, 0.08);
  --shadow-lg: 0 16px 48px rgba(26, 51, 82, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --container: 1200px;
}

[data-theme="night-lab"] {
  color-scheme: dark;
  --primary-900: #061220;
  --primary-800: #0a1a2e;
  --primary-700: #5ec8e8;
  --primary-600: #7dd8f0;
  --primary-400: #4ab8d8;
  --primary-200: #1e3a52;
  --primary-100: #142638;

  --surface: #0e1a28;
  --surface-muted: #0a121c;
  --surface-subtle: #101c2a;
  --border: #1e3048;
  --text: #e8f0fa;
  --text-secondary: #94a8c0;
  --text-muted: #6b8099;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface-muted);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-700);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-600);
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* Header */
.site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(5, 46, 95, 0.1);
  transition: box-shadow 0.25s ease;
}

.site-header-wrap.is-scrolled {
  box-shadow:
    0 6px 22px rgba(5, 46, 95, 0.28),
    0 2px 8px rgba(0, 0, 0, 0.12);
}

.scroll-progress-side {
  position: fixed;
  right: 0.4rem;
  top: 50%;
  z-index: 150;
  pointer-events: none;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.scroll-progress-label {
  font-size: 0.6875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  color: var(--primary-600);
  line-height: 1;
  min-width: 2.25rem;
  text-align: center;
}

.scroll-progress-track {
  width: 3px;
  height: min(42vh, 220px);
  border-radius: 999px;
  background: rgba(90, 130, 176, 0.14);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.scroll-progress-bar {
  display: block;
  width: 100%;
  height: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary-600), var(--accent-gold));
  box-shadow: 0 0 8px rgba(90, 130, 176, 0.35);
  transition: height 0.08s linear;
}

[data-theme="night-lab"] .scroll-progress-track {
  background: rgba(94, 200, 232, 0.12);
  box-shadow: 0 0 0 1px rgba(94, 200, 232, 0.18);
}

[data-theme="night-lab"] .scroll-progress-bar {
  background: linear-gradient(180deg, #4ab8d8, #5ec8e8);
  box-shadow: 0 0 10px rgba(94, 200, 232, 0.45);
}

[data-theme="night-lab"] .scroll-progress-label {
  color: #7dd8f0;
}

.site-header {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #0a3d7d 0%, #052e5f 100%);
  color: #fff;
  box-shadow: none;
}

.site-header > .container {
  flex: 0 0 auto;
}

body.lang-zh {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 1rem 0;
  height: 88px;
  min-height: 88px;
  box-sizing: border-box;
}

.logo {
  flex: 0 0 auto;
}

.logo img {
  height: 56px;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
  margin-left: 0.25rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: #cbddf4;
}

.lang-switch a {
  color: #fff;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.lang-switch a:hover,
.lang-switch a.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.lang-switch .sep {
  opacity: 0.5;
}

.theme-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.125rem;
  height: 2.125rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.theme-toggle .theme-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  display: block;
}

.theme-toggle .theme-icon-sun {
  opacity: 0;
  visibility: hidden;
}

.theme-toggle.is-active .theme-icon-moon {
  opacity: 0;
  visibility: hidden;
}

.theme-toggle.is-active .theme-icon-sun {
  opacity: 1;
  visibility: visible;
}

.theme-toggle:hover,
.theme-toggle.is-active {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

[data-theme="night-lab"] .theme-toggle {
  color: #7dd8f0;
  border-color: rgba(94, 200, 232, 0.35);
  background: rgba(94, 200, 232, 0.1);
}

[data-theme="night-lab"] .theme-toggle.is-active {
  background: rgba(94, 200, 232, 0.2);
  color: #b8ecff;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  border-radius: 1px;
}

.main-nav {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  align-items: center;
  justify-content: flex-end;
}

.nav-list > li {
  position: relative;
}

.nav-list > li > a {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.75rem;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 #444;
  transition: background 0.2s, color 0.2s;
  border: none;
  position: relative;
}

/* 菜单项之间的竖线：仅在文字区域高度内，不延伸到顶栏底端金白线 */
.nav-list > li:not(:first-child) > a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: #385e8a;
}

.nav-caret {
  font-size: 0.65rem;
  opacity: 0.75;
  transition: transform 0.2s ease;
}

.nav-list > li:hover > a .nav-caret,
.nav-list > li.open > a .nav-caret {
  transform: rotate(180deg);
}

.nav-list > li > a:hover,
.nav-list > li:hover > a {
  background: rgba(255, 255, 255, 0.08);
  color: #cbddf4;
}

/* Dropdown */
.nav-dropdown {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 120;
}

.nav-list > li:hover > .nav-dropdown,
.nav-list > li.open > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 0.55rem 1rem;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  transition: background 0.15s, color 0.15s;
}

.nav-dropdown a:hover {
  background: var(--primary-100);
  color: var(--primary-700);
}

.nav-dropdown .nav-dropdown {
  top: 0;
  left: 100%;
  margin-left: 2px;
}

.nav-dropdown > li {
  position: relative;
}

.nav-dropdown > li:hover > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown > li > a.has-children::after {
  content: "›";
  float: right;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1;
}

body.lang-zh .nav-list > li > a {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.8125rem;
}

body.lang-zh .hero h1 {
  letter-spacing: 0.04em;
}

/* Hero */
.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: var(--primary-900);
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img,
.hero-slide video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0, 0, 0, 0.62) 0%,
    rgba(0, 0, 0, 0.38) 45%,
    rgba(0, 0, 0, 0.05) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4.8rem 0 6rem;
  max-width: 640px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-200);
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.hero-subtitle {
  margin: 0 0 1.75rem;
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: #fff;
  color: var(--primary-700);
}

.btn-primary:hover {
  background: var(--primary-100);
  color: var(--primary-800);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.hero-dot.active {
  background: #fff;
  transform: scale(1.2);
}

.hero-controls {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  pointer-events: none;
}

.hero-nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(10, 24, 48, 0.35);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-nav:hover {
  background: rgba(10, 24, 48, 0.55);
  border-color: rgba(255, 255, 255, 0.7);
}

.hero-nav:active {
  transform: scale(0.95);
}

.hero-nav svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}

/* Section common */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--surface);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.section-header .view-all {
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
}

.section-header .view-all::after {
  content: " →";
}

/* Two column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* News cards */
.news-grid {
  display: grid;
  gap: 1.25rem;
}

.news-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s ease var(--reveal-delay, 0ms),
    transform 0.5s ease var(--reveal-delay, 0ms),
    box-shadow 0.2s ease;
}

.news-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.news-card.is-visible:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.news-card-thumb {
  flex: 0 0 128px;
  width: 128px;
  height: 96px;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 2px);
  background: var(--surface-subtle);
  position: relative;
}

.news-card-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.news-card-body {
  flex: 1;
  min-width: 0;
  padding: 0.25rem 0.5rem 0.25rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  width: fit-content;
}

.badge-prl {
  position: relative;
  overflow: hidden;
  background: var(--primary-100);
  color: var(--primary-700);
}

.badge-prl::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 28%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 72%
  );
  transform: translateX(-130%);
  animation: badge-shimmer 4.5s ease-in-out infinite;
}

@keyframes badge-shimmer {
  0%,
  72%,
  100% {
    transform: translateX(-130%);
  }

  36% {
    transform: translateX(130%);
  }
}

.badge-news {
  background: #fef3e2;
  color: #9a6700;
}

.news-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.news-card h3 a {
  color: var(--text);
}

.news-card h3 a:hover {
  color: var(--primary-700);
}

.news-card time {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Seminar timeline */
.seminar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.seminar-list--timeline {
  position: relative;
  padding-left: 1.35rem;
}

.seminar-list--timeline::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--border) 0%,
    var(--primary-200) 45%,
    var(--border) 100%
  );
  border-radius: 1px;
}

.seminar-item {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateX(-14px);
  transition:
    opacity 0.5s ease var(--reveal-delay, 0ms),
    transform 0.5s ease var(--reveal-delay, 0ms),
    border-color 0.25s ease;
}

.seminar-item.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.seminar-list--timeline .seminar-item::before {
  content: "";
  position: absolute;
  left: -1.05rem;
  top: 1.75rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  box-shadow: 0 0 0 3px var(--surface-muted);
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.seminar-item.is-active::before {
  background: var(--primary-600);
  box-shadow: 0 0 0 3px var(--primary-100);
  transform: scale(1.15);
}

.seminar-item.is-active .seminar-date {
  background: var(--primary-100);
  color: var(--primary-700);
}

.seminar-item.is-active {
  border-bottom-color: var(--primary-200);
}

.seminar-item:first-child {
  padding-top: 0;
}

.seminar-date {
  text-align: center;
  background: var(--surface-subtle);
  border-radius: var(--radius);
  padding: 0.5rem;
  align-self: start;
}

.seminar-date .day {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-700);
  line-height: 1.2;
}

.seminar-date .month {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
}

.seminar-item h3 {
  margin: 0 0 0.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
}

.seminar-item h3 a {
  color: var(--text);
}

.seminar-item p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.about-lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
}

.about-text p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
}

.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-feature-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 16 / 9;
}

.about-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 1px 3px rgba(26, 51, 82, 0.05),
    0 8px 20px rgba(26, 51, 82, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(203, 221, 244, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 4px 12px rgba(26, 51, 82, 0.08),
    0 12px 28px rgba(56, 94, 138, 0.1);
}

.stat-card .number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-700);
  line-height: 1.2;
}

.stat-card .label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Research areas */
.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.research-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s ease var(--reveal-delay, 0ms),
    transform 0.55s ease var(--reveal-delay, 0ms),
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.research-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.research-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(
    145deg,
    rgba(56, 94, 138, 0.07) 0%,
    rgba(203, 221, 244, 0.14) 52%,
    rgba(201, 162, 39, 0.07) 100%
  );
  background-size: 220% 220%;
  background-position: 0% 0%;
  transition: opacity 0.3s ease;
}

.research-card:nth-child(2) .research-card-bg,
.research-card:nth-child(5) .research-card-bg {
  background: linear-gradient(
    160deg,
    rgba(203, 221, 244, 0.12) 0%,
    rgba(56, 94, 138, 0.08) 58%,
    rgba(203, 221, 244, 0.1) 100%
  );
  background-size: 220% 220%;
}

.research-card:nth-child(3) .research-card-bg,
.research-card:nth-child(6) .research-card-bg {
  background: linear-gradient(
    130deg,
    rgba(56, 94, 138, 0.06) 0%,
    rgba(203, 221, 244, 0.13) 45%,
    rgba(56, 94, 138, 0.09) 100%
  );
  background-size: 220% 220%;
}

.research-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-200);
}

.research-card:hover .research-card-bg {
  opacity: 1;
  animation: phase-boundary 3.2s ease-in-out infinite alternate;
}

@keyframes phase-boundary {
  from {
    background-position: 0% 0%;
  }

  to {
    background-position: 100% 100%;
  }
}

.research-card .icon,
.research-card h3,
.research-card p {
  position: relative;
  z-index: 1;
}

.research-card .icon {
  width: 40px;
  height: 40px;
  background: var(--primary-100);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary-700);
  overflow: visible;
  transition: background 0.25s ease, color 0.25s ease;
}

.research-card:hover .icon {
  background: var(--primary-700);
  color: #fff;
}

.research-icon {
  width: 22px;
  height: 22px;
  overflow: visible;
}

.research-card:hover .research-icon--fermion .icon-orbit {
  animation: icon-orbit-pulse 1.8s ease-in-out infinite;
}

.research-card:hover .research-icon--fermion .icon-electron-wrap {
  animation: icon-orbit 2.4s linear infinite;
  transform-box: view-box;
  transform-origin: 12px 12px;
}

.research-card:hover .research-icon--sc .icon-coil {
  animation: icon-coil-pulse 1.6s ease-in-out infinite;
}

.research-card:hover .research-icon--sc .icon-coil--inner {
  animation: icon-coil-pulse 1.6s ease-in-out infinite reverse;
}

.research-card:hover .research-icon--qpt .icon-boundary {
  animation: icon-boundary-shift 2s ease-in-out infinite alternate;
  transform-box: view-box;
  transform-origin: center;
}

.research-card:hover .research-icon--spin .icon-spin-arrows {
  animation: icon-spin 2.5s linear infinite;
  transform-box: view-box;
  transform-origin: 12px 13px;
}

.research-card:hover .research-icon--crystal .icon-hex {
  animation: icon-crystal-pulse 2s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.research-card:hover .research-icon--spec .icon-spectrum {
  stroke-dasharray: 30;
  animation: icon-spectrum-draw 2.2s ease-in-out infinite;
}

@keyframes icon-orbit {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes icon-orbit-pulse {
  0%,
  100% {
    opacity: 0.55;
  }

  50% {
    opacity: 1;
  }
}

@keyframes icon-coil-pulse {
  0%,
  100% {
    opacity: 0.55;
  }

  50% {
    opacity: 1;
  }
}

@keyframes icon-boundary-shift {
  from {
    transform: translate(-1px, 1px);
  }

  to {
    transform: translate(1px, -1px);
  }
}

@keyframes icon-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes icon-spectrum-draw {
  0% {
    stroke-dashoffset: 30;
    opacity: 0.45;
  }

  50% {
    stroke-dashoffset: 0;
    opacity: 1;
  }

  100% {
    stroke-dashoffset: -30;
    opacity: 0.45;
  }
}

@keyframes icon-crystal-pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.06);
  }
}

.research-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.research-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Instruments */
.instruments-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.instrument-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: block;
}

.instrument-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.35s ease;
}

.instrument-card:hover img {
  transform: scale(1.05);
  filter: brightness(1.14) saturate(1.05);
}

.instrument-card .label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  background: linear-gradient(transparent 35%, rgba(26, 51, 82, 0.82) 100%);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.35s ease;
}

.instrument-card:hover .label {
  background: linear-gradient(transparent 20%, rgba(26, 51, 82, 0.38) 100%);
}

/* Partners */
.partners-text {
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.partner-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  padding: 0 0.25rem;
}

.partner-marquee {
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}

.partner-marquee-track {
  display: flex;
  width: max-content;
  animation: partner-marquee 45s linear infinite;
}

.partner-marquee:hover .partner-marquee-track {
  animation-play-state: paused;
}

@keyframes partner-marquee {
  to {
    transform: translateX(-50%);
  }
}

.partner-tag {
  flex: 0 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

[data-theme="night-lab"] .partner-tag {
  background: var(--surface-subtle);
  border-color: var(--border);
  color: var(--text-secondary);
}

/* Footer — 与顶栏同色渐变，无黄白线 */
.site-footer {
  background: linear-gradient(180deg, #0a3d7d 0%, #052e5f 100%);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand img {
  height: 40px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.footer-brand p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h4 {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #cbddf4;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
}

.footer-col a:hover {
  color: #fff;
}

[data-theme="night-lab"] .site-header,
[data-theme="night-lab"] .site-footer {
  background: linear-gradient(180deg, #061428 0%, #030c18 100%);
}

[data-theme="night-lab"] .site-header-wrap.is-scrolled {
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.5),
    0 2px 8px rgba(0, 0, 0, 0.28);
}

[data-theme="night-lab"] .research-card {
  background: var(--surface-subtle);
}

[data-theme="night-lab"] .news-card,
[data-theme="night-lab"] .stat-card {
  background: var(--surface-subtle);
  border-color: var(--border);
}

[data-theme="night-lab"] .stat-card {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: var(--shadow-sm);
}

[data-theme="night-lab"] .research-card .icon {
  background: var(--primary-100);
  color: var(--primary-600);
}

[data-theme="night-lab"] .research-card:hover .icon {
  background: var(--primary-600);
  color: #061220;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

.design-note {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background: var(--primary-800);
  color: #fff;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 960px) {
  .two-col,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .research-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .instruments-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .nav-list > li > a {
    padding: 0.5rem 0.55rem;
    font-size: 0.7rem;
  }

  .logo img {
    height: 48px;
  }
}

@media (max-width: 720px) {
  .scroll-progress-side {
    display: none;
  }

  .header-inner {
    flex-wrap: wrap;
    align-items: center;
    padding: 0.85rem 0;
    height: auto;
    min-height: 0;
  }

  .logo {
    flex: 1 1 auto;
  }

  .header-actions {
    margin-left: auto;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    flex: 1 1 100%;
    order: 3;
    width: 100%;
    justify-content: stretch;
    max-height: calc(100dvh - 4.5rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav.open {
    display: block;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

  .nav-list > li > a {
    padding: 0.75rem 0.25rem;
    font-size: 0.8125rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-list > li:hover > .nav-dropdown,
  .nav-dropdown > li:hover > .nav-dropdown {
    display: none;
  }

  .nav-list > li:not(:first-child) > a::before {
    display: none;
  }

  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 0;
    margin: 0;
    padding: 0;
    display: none;
  }

  .nav-list > li.open > .nav-dropdown {
    display: block;
  }

  .nav-dropdown .nav-dropdown {
    position: static;
    margin-left: 1rem;
    background: rgba(0, 0, 0, 0.08);
    display: none;
  }

  .nav-dropdown > li.open > .nav-dropdown {
    display: block;
  }

  .nav-dropdown a {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.6rem 1rem 0.6rem 1.5rem;
    font-size: 0.8125rem;
  }

  .nav-dropdown a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
  }

  .hero {
    min-height: 440px;
  }

  .hero-controls {
    display: none;
  }

  .hero-content {
    padding: 2.5rem 0 4rem;
  }

  .news-card {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
  }

  .news-card-thumb {
    flex: 0 0 auto;
    width: 100%;
    height: 168px;
  }

  .news-card-body {
    padding: 0.25rem 0.5rem 0;
  }

  .research-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

body.nav-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-slide {
    transition: none;
  }

  .partner-marquee {
    mask-image: none;
  }

  .partner-marquee-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    transform: none;
  }

  .partner-marquee .partner-tags[aria-hidden="true"] {
    display: none;
  }

  .partner-tags {
    flex-wrap: wrap;
    justify-content: center;
  }

  .stat-card:hover {
    transform: none;
  }

  .research-card {
    opacity: 1;
    transform: none;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
  }

  .research-card:hover .research-card-bg {
    animation: none;
    opacity: 0.65;
  }

  .research-card:hover .research-icon--fermion .icon-orbit,
  .research-card:hover .research-icon--fermion .icon-electron-wrap,
  .research-card:hover .research-icon--sc .icon-coil,
  .research-card:hover .research-icon--sc .icon-coil--inner,
  .research-card:hover .research-icon--qpt .icon-boundary,
  .research-card:hover .research-icon--spin .icon-spin-arrows,
  .research-card:hover .research-icon--crystal .icon-hex,
  .research-card:hover .research-icon--spec .icon-spectrum {
    animation: none;
  }

  .badge-prl::after {
    animation: none;
  }

  .news-card,
  .seminar-item {
    opacity: 1;
    transform: none;
    transition: box-shadow 0.2s ease, border-color 0.25s ease;
  }

  .instrument-card:hover img,
  .news-card.is-visible:hover {
    transform: none;
  }
}
