:root {
  color-scheme: light;
  --bg: #f5f7f9;
  --panel: #ffffff;
  --panel-soft: #f9fafb;
  --text: #172033;
  --muted: #5c667a;
  --subtle: #7a8497;
  --line: #d9dee7;
  --line-strong: #c5ccd8;
  --accent: #0f766e;
  --accent-2: #b45309;
  --accent-3: #be123c;
  --accent-4: #1d4ed8;
  --shadow: 0 12px 34px rgba(23, 32, 51, .08);
  --radius: 8px;
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111318;
  --panel: #191d24;
  --panel-soft: #202631;
  --text: #f2f4f8;
  --muted: #b7bfce;
  --subtle: #8e98aa;
  --line: #313948;
  --line-strong: #495365;
  --accent: #2dd4bf;
  --accent-2: #f59e0b;
  --accent-3: #fb7185;
  --accent-4: #93c5fd;
  --shadow: 0 14px 36px rgba(0, 0, 0, .28);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.72;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(23, 32, 51, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 51, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 76%);
}

html[data-theme="dark"] body::before {
  background:
    linear-gradient(rgba(242, 244, 248, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 244, 248, .04) 1px, transparent 1px);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--accent-4);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

::selection {
  color: #fff;
  background: var(--accent);
}

.floating-orb {
  display: none;
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 1000;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
}

.skip-link {
  position: absolute;
  left: 18px;
  top: -60px;
  z-index: 1001;
  padding: 10px 14px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--text);
  transition: top .18s ease;
}

.skip-link:focus {
  top: 14px;
}

.page {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 56px;
}

.toolbar {
  position: sticky;
  top: 12px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0 0 28px auto;
  padding: 8px;
  width: max-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.toolbar-btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: var(--panel);
  font-size: .9rem;
  font-weight: 760;
  white-space: nowrap;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.toolbar-btn:hover,
.toolbar-btn:focus-visible {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--panel-soft);
  text-decoration: none;
  transform: translateY(-1px);
}

.toolbar-btn.active,
#theme-toggle[data-active="true"] {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.toolbar-btn.ccf {
  color: var(--accent-4);
}

.toolbar-btn.workbench {
  color: var(--accent-2);
}

.hero {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  min-height: 560px;
  padding: 28px 0 44px;
  border-bottom: 1px solid var(--line);
}

.photo-wrap {
  position: relative;
  width: 260px;
}

.photo-wrap::after {
  content: "GXNU";
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  color: #fff;
  background: rgba(23, 32, 51, .78);
  font-size: .72rem;
  font-weight: 800;
}

.photo {
  width: 100%;
  aspect-ratio: 5 / 7;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel-soft);
  box-shadow: var(--shadow);
}

.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--accent);
  background: var(--panel-soft);
  font-size: .84rem;
  font-weight: 760;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-title {
  margin: 0;
  color: var(--text);
  font-size: 4.3rem;
  line-height: 1.02;
  font-weight: 860;
  letter-spacing: 0;
}

.hero-subtitle {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.18rem;
  font-weight: 720;
}

.hero-desc {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1rem;
  text-align: left;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--panel);
  font-size: .9rem;
  font-weight: 720;
  text-decoration: none;
}

a.pill-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.stat {
  min-height: 104px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.stat-number {
  color: var(--accent-3);
  font-size: 1.7rem;
  line-height: 1.1;
  font-weight: 860;
}

.stat-label {
  margin-top: 8px;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.45;
  font-weight: 680;
}

.tool-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.tool-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--panel);
  text-decoration: none;
}

.tool-card:hover {
  color: var(--text);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.tool-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  background: var(--accent);
  font-size: .8rem;
  font-weight: 860;
}

.tool-card:nth-child(2) .tool-mark {
  background: var(--accent-2);
}

.tool-card > span:not(.tool-mark):not(.tool-arrow) {
  display: block;
  min-width: 0;
}

.tool-card strong {
  display: block;
  font-size: 1rem;
}

.tool-card strong + span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .86rem;
}

.tool-arrow {
  color: var(--subtle);
  font-size: 1.2rem;
}

.layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  margin-top: 34px;
}

.sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
}

.side-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.side-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--subtle);
  font-size: .78rem;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

.side-heading::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: .9rem;
}

.icon-box {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--accent);
  background: var(--panel-soft);
  font-size: .72rem;
  font-weight: 800;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: var(--panel-soft);
  font-size: .82rem;
  font-weight: 720;
}

.nav-list {
  display: grid;
  gap: 4px;
}

.nav-link {
  display: block;
  padding: 8px 9px;
  border-radius: 7px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 720;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: var(--panel-soft);
  text-decoration: none;
}

.content-card {
  min-width: 0;
}

section {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 94px;
}

section:first-child {
  padding-top: 0;
}

section:last-child {
  border-bottom: 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1.25;
  font-weight: 820;
  letter-spacing: 0;
}

.section-title::before {
  content: "";
  width: 4px;
  height: 26px;
  border-radius: 2px;
  background: var(--accent);
}

h3 {
  margin: 30px 0 12px;
  color: var(--text);
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: 0;
}

h4 {
  margin: 24px 0 10px;
  color: var(--accent-4);
  font-size: .96rem;
  font-weight: 820;
  letter-spacing: 0;
}

p {
  margin: 0 0 14px;
  color: var(--muted);
  text-align: left;
}

li {
  color: var(--muted);
  margin-bottom: 7px;
}

li::marker {
  color: var(--accent);
}

.plain-list {
  margin: 0;
  padding-left: 20px;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.mini-card,
.service-card,
.project-card,
.pub-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.mini-card {
  padding: 14px;
}

.mini-card strong {
  display: block;
  color: var(--text);
  font-weight: 800;
}

.mini-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .9rem;
}

.service-grid,
.project-list,
.pub-list {
  display: grid;
  gap: 10px;
}

.service-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
}

.service-mark,
.pub-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: #fff;
  background: var(--accent);
  font-size: .78rem;
  font-weight: 820;
}

.service-mark {
  width: 34px;
  height: 34px;
}

.service-body {
  color: var(--muted);
  font-size: .94rem;
}

.service-body strong {
  color: var(--text);
}

.grid-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.grid-list li {
  margin: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--panel);
  font-size: .9rem;
}

.project-card {
  padding: 15px 16px;
  color: var(--muted);
}

.project-card strong {
  color: var(--text);
}

.pub-note,
.pub-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: .86rem;
}

.pub-tools {
  justify-content: space-between;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.pub-search {
  min-width: 260px;
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  background: var(--panel-soft);
  outline: none;
}

.pub-search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.pub-count {
  color: var(--subtle);
  font-size: .84rem;
  font-weight: 720;
}

.sym {
  font-weight: 820;
}

.sym-corr {
  color: var(--accent-3);
}

.sym-co {
  color: var(--accent-2);
}

.pub-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pub-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
}

.pub-index {
  width: 38px;
  height: 38px;
  background: var(--accent-4);
}

.pub-title {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-weight: 800;
  line-height: 1.45;
}

.pub-meta {
  color: var(--muted);
  font-size: .9rem;
}

.author-me {
  color: var(--accent-3);
  font-weight: 800;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-soft);
  font-size: .72rem;
  font-weight: 800;
}

.badge-ccf-a,
.badge-top {
  color: var(--accent-3);
}

.badge-ccf-b,
.badge-sci-1 {
  color: var(--accent-4);
}

.badge-ccf-c,
.badge-sci-2,
.badge-sci-3,
.badge-sci-4 {
  color: var(--accent);
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  color: var(--muted);
}

.timeline-dot-wrap {
  display: grid;
  place-items: start center;
  padding-top: 8px;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-content strong {
  color: var(--text);
}

.callout {
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  background: var(--panel);
}

.callout h3 {
  margin-top: 0;
}

.highlight {
  color: var(--accent-3);
  font-weight: 800;
}

footer {
  padding: 28px 0 0;
  color: var(--subtle);
  font-size: .84rem;
  text-align: center;
}

footer p {
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .38s ease, transform .38s ease;
}

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

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--panel);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hidden-by-filter {
  display: none;
}

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.error-panel {
  width: min(760px, 100%);
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.error-panel h1 {
  margin: 0;
  font-size: 2.4rem;
  line-height: 1.15;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 30px;
    min-height: auto;
  }

  .photo-wrap {
    width: 220px;
  }

  .hero-title {
    font-size: 3.4rem;
  }

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

  .sidebar {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .side-card.nav-card {
    grid-column: 1 / -1;
  }

  .nav-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .page {
    width: min(100% - 24px, 1160px);
    padding-top: 12px;
  }

  .toolbar {
    width: 100%;
    justify-content: stretch;
    align-items: stretch;
    flex-wrap: wrap;
  }

  .toolbar-btn {
    flex: 1 1 calc(50% - 8px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 18px;
  }

  .photo-wrap {
    width: min(260px, 72vw);
  }

  .hero-title {
    font-size: 2.72rem;
  }

  .hero-subtitle {
    font-size: 1.04rem;
  }

  .stats,
  .tool-strip,
  .intro-grid,
  .grid-list {
    grid-template-columns: 1fr;
  }

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

  .nav-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pub-item {
    grid-template-columns: 1fr;
  }

  .pub-index {
    width: max-content;
    padding: 0 10px;
  }

  .tool-card {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .tool-arrow {
    display: none;
  }
}

@media (max-width: 480px) {
  .toolbar-btn,
  .hero-actions .pill-link {
    flex-basis: 100%;
  }

  .hero-title {
    font-size: 2.3rem;
  }

  .nav-list {
    grid-template-columns: 1fr;
  }

  .pub-tools {
    display: grid;
  }

  .pub-search {
    min-width: 0;
    width: 100%;
  }
}

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